- Set Up Analytics
- PostHog
Set Up Analytics
PostHog
Add the following to your layout.json file to send analytics to PostHog.
You only need to include apiHost if you are self-hosting PostHog. We send events to https://app.posthog.com by default.
"analytics": {
"posthog": {
"apiKey": "required",
"apiHost": "optional"
}
}
Session Recordings
You need to add the URL for your docs website to Posthog’s “Authorized domains for recordings” before you can receive session recordings. The option to add your URL is in Posthog’s project settings.