Documentation
supastarter for Nuxtsupastarter for NuxtAnalytics

Google Analytics

To use Google Analytics with supastarter, first create a Google Analytics account and grab your analytics id.

Then, add the app code to your .env.local file and your deployment environment:

NUXT_PUBLIC_GOOGLE_ANALYTICS_ID=your_id_here

Next, we need to activate Google Analytics as the analytics provider. To do this, open the apps/marketing/modules/analytics/index.ts file and set the provider path to "./provider/google".

To customize the Google Analytics configuration, edit the apps/marketing/modules/analytics/provider/google/index.ts.

For further instructions, follow the general analytics instructions.

On this page

No Headings