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. On a notra.site address, PostHog’s cookie stays on your site’s own host so other Notra sites never receive it; on your custom domain PostHog’s defaults apply.
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 and click Save. Notra opens a pull request with the change. To configure it in your repository instead, add it to blog.json:
blog.json
3

Merge and verify

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

Options

Last modified on November 7, 2026