Analytics

Collect all the analytics you want and showcase them with PostHog

Internal Analytics

  1. Create your account on PostHog

  2. Get your API key in Settings > Personal API keys

  3. Fill the the key in your .env file:

.env
NEXT_PUBLIC_POSTHOG_KEY=

Stats Showcasing

Showcasing your analytic stats allows your customers to be sure that your site has an interesting reach.

  1. Create a Dashboard on PostHog (Website Metrics is fine to start with)

  2. Click on the Share button on the top right corner

  3. Check the "Share dashboard publicly" box

  4. Copy the "Embed dashboard" code into your .env file:

.env
NEXT_PUBLIC_POSTHOG_IFRAME_URL=

Last updated