Analytics (PostHog)
Setup
1. Create a new PostHog project
Go to PostHog ↗, sign up, and create a new project.
Configure PostHog Toolbar
The PostHog toolbar let’s you see how users are interacting with your project with heatmaps, element level inspection and more.
Once you have created a project, go to Settings → Toolbar → Add and enter your Project URL
to enable the PostHog toolbar to appear on your website when you’re signed into your PostHog account.
2. Connect to Vercel
In your Vercel project, go to Settings → Environment Variables, and add the following:
PUBLIC_POST_HOG_HOST="https://app.posthog.com"PUBLIC_POST_HOG_API_KEY=... # PostHog → Settings → General → Project API Key