Pick your stack and add the code below to your codebase.

Install this script in the <head> tag of your website:

Replace <YOUR_API_KEY> with your project API key.

Code Examples

You can check out example code for Next.js and React apps on Github:

Troubleshooting

  • API Key Not Provided: Ensure you pass a valid apiKey when initializing the SDK.
  • SDK Not Initialized: If you encounter issues with initialization, check the console logs for errors and ensure the project ID and API key are correct.
  • Network Errors: Verify that the analytics service URL is accessible from your network.

Support

Please contact us at support@formo.so if you run into issues. We’re here to help!