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