Documentation
Analytics

Custom Analytics

To use a custom analytics provider with supastarter, first make sure you have the url of the tracking script.

Then, if you need to pass any environment variables with the script, add them to the .env.local file and your deployment environment:

PUBLIC_MY_CUSTOM_ANALYTICS_KEY=your_key_here

Next, we need to activate your analytics provider. To do this, open apps/web/src/lib/modules/analytics/index.ts and change the content to:

export * from "./provider/custom";

To customize the custom analytics configuration, edit the apps/web/src/lib/modules/analytics/provider/custom/index.ts.

For further instructions, follow the general analytics instructions.

On this page

No Headings