Analytics with Pirsch
To use Mixpanel with nextstarter, first create a Pirsch account (opens in a new tab) and get your app code.
Then, add the app code to your .env.local
file and your deployment environment:
NEXT_PUBLIC_PIRSCH_CODE=your_code_here
Next, we need to activate Pirsch as the analytics provider. To do this, open apps/web/modules/analytics/index.tsx
and change the content to:
export * from './provider/pirsch';
To customize the Pirsch configuration, edit the apps/web/modules/analytics/provider/pirsch/index.tsx
.
Learn more about analytics with Pirsch in the official documentation (opens in a new tab).
For further instructions, follow the general analytics instructions.