Nuxt
Analytics
Custom

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:

NUXT_PUBLIC_MY_CUSTOM_ANALYTICS_KEY=your_key_here

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

const providerPath = './provider/custom';

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

For further instructions, follow the general analytics instructions.