← All guides

Watch real sessions: PostHog

Add session replays and product analytics on top of the template's own event tracking.

The video for this guide is coming soon. The written steps below cover everything.

Sign up for PostHog ↗Generous free tier

What you get

Your own database already records every key event. PostHog adds session replays, so a bug report or a funnel drop comes with video of what actually happened.

Steps

  1. Create a PostHog project and copy the project API key into NEXT_PUBLIC_POSTHOG_KEY. Set NEXT_PUBLIC_POSTHOG_HOST to your region.
  2. Turn on Session replay (form inputs are masked by default).
  3. If you market to the EU or UK, turn on consentBanner in Admin → Settings.

Check it works

Click around your site, then find the session in PostHog a minute later.

What the video covers

Some links are affiliate links: signing up through them may earn us a commission at no extra cost to you.

Next: Catch errors: Sentry →