PostHog Integration
See your AI traffic from PostHog in one dashboard
Connect PostHog with a personal API key and see exactly how much of your traffic comes from ChatGPT, Perplexity, Gemini, Claude and Copilot. Works with US Cloud, EU Cloud and self-hosted deployments, powered by a single HogQL query.
Features
All your PostHog pageviews, finally surfaced for AI
Bring Your Own API Key
Connect with a PostHog personal API key and your numeric project ID. No OAuth and no extra users to invite, just paste the key that starts with phx_ and your project ID and you are live.
HogQL Across AI Assistants
We run HogQL queries over your pageview events and match the referring domain against ChatGPT, Perplexity, Gemini, Claude, Copilot, Grok, Mistral, Meta AI and DeepSeek, with no insights or dashboards to build in PostHog.
Any PostHog Deployment
Choose US Cloud or EU Cloud, or paste the HTTPS URL of your self-hosted PostHog instance in the advanced section. We route every query through the region you select.
No Insights to Maintain
Instead of building and sharing PostHog insights, we query your event data directly with HogQL so the AI breakdown stays accurate even as your event schema evolves.
Read-Only, Revocable
Use a personal API key scoped to query reads. Rotate or delete the key in PostHog to revoke access, we never write to your project.
395 Days Backfill
On first connect we pull up to 395 days of pageview history so you can see when ChatGPT, Perplexity and Gemini started sending visitors to your PostHog-tracked site.
From PostHog events to AI traffic insights in two minutes
Generate a personal API key, paste your project ID and pick your region. Most teams have a live AI traffic dashboard in two minutes.
-
1
Create a personal API key
In PostHog, open your user settings and create a personal API key with query read access. It starts with phx_.
-
2
Paste your key and project ID
From Reports then AI Traffic, choose PostHog and paste the API key and your numeric project ID. Pick US Cloud, EU Cloud or a self-hosted URL, and we validate it before syncing.
-
3
We run a HogQL query
We query your pageview events with HogQL and match referring domains to AI assistants, with no insights or dashboards to set up in PostHog.
-
4
Explore the AI Traffic dashboard
Within minutes the dashboard fills with users, sessions and top landing pages, broken down by AI platform.
Made for PostHog-first teams
Built for the teams who already run PostHog for product analytics and want AI traffic alongside it.
Product and growth teams
Add AI traffic to the same PostHog data you already use for product analytics. See ChatGPT, Perplexity and Gemini as acquisition channels with users and sessions.
SEO and AEO teams
Compare spikes in AI visibility with PostHog sessions to see whether traffic moved after your optimisations.
Privacy-conscious and EU teams
Keep your analytics on EU Cloud or self-hosted PostHog while still tracking AI traffic in LLM Pulse.
Agencies and multi-project teams
Connect a different PostHog project to each LLM Pulse project to track AI traffic for every site independently.
TecnoCampus
"LLM Pulse is a pioneering response to the need to measure performance across different LLMs. At TecnoCampus we need maximum transparency, the ability to parameterize results and to carry out visibility audits for our brand, now also in the increasingly established field of AI. LLM Pulse gives us all of that in a single place."
Jordi Perez Rubio
LinkedInFrequently Asked Questions
Everything you need to know about connecting PostHog to LLM Pulse to track AI traffic.
- You need a PostHog personal API key (it starts with phx_) and your numeric project ID. Generate the key from your PostHog user settings with read access. The key inherits your permissions, so you do not need to grant LLM Pulse anything beyond what you already have.
- Open PostHog and go to Settings then Project. The numeric project ID is shown there, and it is also the number in your project URL. Paste it into the connect form. A friendly project name is optional.
- Yes. The advanced section accepts a custom HTTPS base URL for self-hosted PostHog, and the form lets you pick US Cloud or EU Cloud. We enforce HTTPS so your API key never travels over an unencrypted connection.
- We track every major AI assistant, including ChatGPT, Perplexity, Gemini, Claude, Copilot, Grok, Mistral, Meta AI and DeepSeek, by matching the referring domain on your pageview events with a HogQL query. Organic search is matched separately so we can plot AI versus organic versus other traffic.
- PostHog connections report users and sessions by AI source, but conversion-event filtering is not available for PostHog, so it reports zero conversions. If conversion attribution matters, connect Google Analytics 4, Piano Analytics or Adobe Analytics instead, which all support conversion-event filtering. PostHog measures AI referral traffic, not AI crawler-bot hits.
- The PostHog integration is included on Growth and above. Under whitelabel, which our team sets up through Talk to sales, you can connect a PostHog project per LLM Pulse project.
Track AI traffic in PostHog today
Generate a PostHog personal API key, paste your project ID and start seeing AI traffic in minutes.
Trusted by 7,000+ users worldwide