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.