Skip to main content
Notra loads the PostHog snippet on every live page and sends events directly to your PostHog instance. Session recording is on by default, and you can turn it off while keeping analytics.
1

Copy your project API key

Copy the public project API key, which starts with phc_, from your PostHog project settings. This integration uses the public browser key, so don’t enter a personal or secret API key.
2

Add it to Notra

Open Studio → Sites, select your site, open Integrations and click Add PostHog. Paste the key into Project API key. To configure it in your repository instead, add it to blog.json:
blog.json
3

Publish and verify

After you publish the change and the production deployment finishes, visit your live site and check Activity in PostHog for the pageview.

Options

Last modified on October 9, 2026