Analytics
Mixpanel
To use Mixpanel with supastarter, first create a Mixpanel account and get your app token.
Then, add the app token to your .env.local
file and your deployment environment:
Next, we need to install the Mixpanel packages:
Finally, we need activate Mixpanel as the analytics provider. To do this, open apps/web/src/lib/modules/analytics/index.ts
and change the content to:
To customize the Mixpanel configuration, edit the apps/web/src/lib/modules/analytics/provider/mixpanel/index.ts
.
Learn more about analytics with Mixpanel in the official documentation.
For further instructions, follow the general analytics instructions.