Analytics
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:
Next, we need to activate Google Analytics as the analytics provider. To do this, open apps/web/src/lib/modules/analytics/index.ts
and change the content to:
To customize the Google Analytics configuration, edit the apps/web/src/lib/modules/analytics/provider/custom/index.ts
.
For further instructions, follow the general analytics instructions.