AI Search Visibility, AEO, GEO and AI SEO Platforms
PostHog

PostHog: Open-Source Product and Web Analytics

PostHog is an open-source product and web analytics platform. It labels visits from AI assistants such as ChatGPT and Perplexity as an AI channel and follows those users through sign-up, activation and retention.

$6.64 per 1,000 AI answers on Growth · 12 AI platforms · 7-day free trial

August 27, 2026
Cihan Geyik
Table of Content

Someone reads a ChatGPT answer, clicks the link to your pricing page and signs up two days later. PostHog can label that first visit as AI traffic and follow the same person through sign-up, activation and retention. That makes it one of the few analytics tools that tie AI search to product usage. What it can’t see is the answer itself, or the answers that never produced a click.

PostHog measures what happens after the click. It doesn’t run prompts or read AI answers. Visibility inside ChatGPT, Gemini or Google AI Overviews needs a separate tracker.

What is PostHog and what does it do?

PostHog is open-source analytics built for product teams. One install covers analytics, session replay, feature flags, experiments, surveys, error tracking and a data warehouse. The core repo is MIT-licensed, while the ee directory has its own license.

The cloud version has a monthly free tier: 1 million events, 5,000 recordings, 1 million flag requests and 100,000 exceptions. Usage beyond that is billed per product. A self-hosted hobby deploy exists, but PostHog sizes it at roughly 100,000 events a month and offers no support for it.

Website analytics tools such as GA4 can report AI referrals too. PostHog’s edge is that web sessions and product events live in one place. A ChatGPT visit can be tied to a first project created or a teammate invited.

PostHog productUse for AI search measurement
Web analyticsAI channel type, referrers, UTM tags and landing pages
Product analyticsFunnels and retention for AI-referred users
Session replayWatch how AI visitors use the page they land on
SurveysAsk new users which AI tool or prompt sent them
Data warehouseQuery outside data next to PostHog events
AI observabilityTraces of your own app’s LLM calls, not brand visibility

How does PostHog track AI referral traffic?

PostHog assigns every session a channel type when it’s ingested. The rules read the entry referrer, UTM tags and ad click IDs. One of the 20 default types is AI, defined as a link from an assistant such as ChatGPT, Claude, Gemini, Perplexity or Copilot.

According to PostHog’s channel type docs, a session counts as AI when utm_source matches an AI source or the referring domain does. Examples include chatgpt.com, claude.ai, perplexity.ai and gemini.google.com.

Landing URL: https://example.com/pricing?utm_source=chatgpt.com
Referring domain: chatgpt.com
Channel type: AI

Two details matter. Rules run in order, and paid rules come first, so an AI link tagged with a paid utm_medium counts as Paid. You can also add custom channel types under Web analytics in project settings, and those take priority over the defaults.

Click in an AI answer → Referrer or utm_source arrives → AI channel assigned → Landing page and session → Sign-up event → Retention

Why does AI referral traffic undercount?

Referral data only exists when a click happens and the referrer survives. Plenty of AI influence never gets that far.

  • Some apps and browsers drop the referrer, so the visit lands as Direct.
  • Clicks from Google AI Overviews arrive from google.com and look like ordinary organic search.
  • A user reads an answer, remembers the brand and types the URL a week later.
  • Many answers name a brand with no link at all.

The gap is large. In our tracking, ansvisor.com was a cited source in 9.6% of 103,427 AI answers. Referral analytics alone would only show the small share of those answers that ended in a click. Source: Ansvisor tracking data, September 15 to October 14, 2026.

That’s why AI attribution usually combines referrals with self-reported answers and visibility data.

How does PostHog measure its own AI visibility?

PostHog has written openly about it. In a June 2026 newsletter, the team said its traffic from LLMs grew 41x in two years. It also said that traffic converts better than almost anything else it has.

No single source gave them the full picture, so they combine several:

  • Daily prompt runs in Gauge, a visibility tracker.
  • Google Search Console for clicks, impressions and rankings.
  • PostHog itself for traffic, conversion and a "heard about us through AI" onboarding question.
  • Bot analytics and tagged referrals, which they treat as incomplete.

A daily Slack report lists 50 to 100+ real prompts from the previous day’s sign-ups, analyzed with PostHog AI, the built-in assistant.

The survey collected 9,214 prompts in about three months. The team also scrapped six months of tracked prompts because they didn’t match what real users asked. Take your prompt set from real users, and expect to rebuild it.

What is PostHog AI observability?

AI observability is PostHog’s product for teams that build AI features. It captures every call your app makes to an LLM, with the prompt, response, tokens, cost, latency and tools used. Calls are grouped into traces and linked to the user, their session replay and any errors.

It answers questions about your own AI product. It says nothing about how ChatGPT or Gemini describe your brand.

PostHog AI observabilityAI visibility tracking
Looks atYour app’s own LLM callsAnswers from ChatGPT, Gemini, AI Overviews and others
UnitTrace, generation, spanPrompt, answer, citation
QuestionIs our AI feature fast, cheap and correct?Do AI answers name and cite us?
Usual ownerProduct and engineeringSEO and content teams

How to set up AI referral analytics in PostHog

  1. Install PostHog on the marketing site and the app, and identify users at sign-up so earlier anonymous sessions join their profile.
  2. Open Web analytics, filter to the AI channel and list the top landing pages.
  3. Add custom channel rules for any AI source the defaults miss.
  4. Build a funnel from AI-channel landing to sign-up to your activation event.
  5. Add an onboarding survey question about which AI tool or prompt brought the user in.
  6. Each week, check whether pages that gain citations also gain AI sessions.

Our walkthrough on tracking traffic from ChatGPT covers the same setup for other analytics tools, including GA4.

How PostHog and Ansvisor fit together

JobPostHogAnsvisor
Run prompts on AI enginesNoChatGPT, Gemini, AI Overviews, AI Mode and Bing AI Mode on Growth; Perplexity, Copilot, Claude and more as add-ons
Mentions and citationsNoReported separately for each prompt
AI-referred visitsAI channel typeBy platform and landing page
Funnels, retention, revenueYesLeft to your analytics stack
LicenseMIT core, ee directory separateOpen source under MIT, cloud or self-hosted

The split is clean. Ansvisor shows where you appear in answers and which sources win. PostHog shows what the people who clicked went on to do. The broader practice is covered in AI traffic analytics.

How Ansvisor helps

Ansvisor covers the part before the click: which prompts mention you, which pages get cited and where rivals win. AI Traffic Analytics lines up AI-referred visits by platform and landing page with those prompt results. A citation gain can then be checked against real sessions in PostHog. Start a 7-day free trial.

PostHog analytics, PostHog web analytics, PostHog AI channel, PostHog AI observability, PostHog LLM analytics

FAQ

Frequently asked questions.

What is PostHog?

PostHog is an open-source product and web analytics platform. It combines analytics, session replay, feature flags, experiments, surveys, error tracking, a data warehouse and AI observability. The cloud version has a monthly free tier, then usage-based pricing.

Can PostHog track traffic from ChatGPT and other AI platforms?

Yes, when a referrer or UTM tag reaches your site. PostHog’s default AI channel type matches sources such as chatgpt.com, claude.ai, perplexity.ai and gemini.google.com. Visits that lose the referrer land as Direct, so totals undercount AI influence.

Can PostHog measure whether AI traffic converts?

Yes. Because PostHog joins web and product events, you can build funnels from AI-channel landings to sign-up and your activation event. Identify users at sign-up so their earlier anonymous sessions join the same profile.

Does PostHog monitor AI visibility or citations?

No. PostHog measures what visitors do after they reach your site. It doesn’t run prompts on AI engines or record which brands and sources answers mention. PostHog’s own team uses a separate visibility tracker for that.

What is PostHog AI observability?

AI observability captures the LLM calls your own app makes, including prompts, responses, tokens, cost and latency, grouped into traces. It helps teams debug and evaluate AI features. It doesn’t measure how external AI engines describe your brand.

Ansvisor
Measure your AI visibility. Then improve it.

See how AI answers describe your brand, find out why competitors get picked, and close the gaps with AI agents that work alongside your team.

$6.64 per 1,000 AI answers on Growth, or $5.31 billed yearly: 37,500 AI answers a month for $249. 7-day free trial or 50% off your first month with code SAVE50. Work out your cost →

Let AI Search Work for Your Growth

Each prompt you win brings more mentions, more citations and more buyers. Ansvisor keeps finding the next one.

AI Answers Mentions Citations Visibility Score AI Share of Voice AI Traffic Revenue
Win Back Search VisibilityTry Ansvisor 7-day Free →✓ Zero risk. Cancel anytime.
Help us grow the AI Visibility Glossary

New terms are added regularly.

Help us improve the page or suggest a new term →
About the Author
Cihan Geyik

Cihan Geyik

Co-founder at Ansvisor

Cihan Geyik is the co-founder of Ansvisor, an open-source AI Visibility platform for AI Search. With more than 15 years of experience in digital marketing and growth, he writes about AI visibility, AI search, AEO, GEO, citations, and answer engines. He focuses on helping brands understand and improve their presence across ChatGPT, Gemini, Google AI Overviews, Bing AI Mode and other AI answer engines.

Google Preferred Sources
Get more Ansvisor insights in Google

Add Ansvisor as a preferred source and Google will show you more of our AI search, AEO and GEO guides.