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:
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:
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.