Environment variables
To enable PostHog in your project, simply add the following environment variables to your.env file:
- Astro
- Next.js
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
.env file:
# .env
PUBLIC_POSTHOG_KEY=
PUBLIC_POSTHOG_HOST=
# .env
NEXT_PUBLIC_POSTHOG_KEY=
NEXT_PUBLIC_POSTHOG_HOST=