Skip to content

Beyond GA4: How to Track and Attribute B2B Pipeline from ChatGPT and Perplexity

By Vaibhav Singhal3 min read

Share
Summarize with AI
On this page

You fixed your SEO, your docs, and your comparison pages. Traffic started arriving from ChatGPT, Perplexity, and Claude. Then you opened GA4 and… it's under Direct. Or a nameless Referral. Or worse: it's invisible.

AI search sends real, high-intent B2B traffic — but it is the most misattributed channel in modern SaaS analytics. Here is how to fix it, from shared UTM conventions to GA4 regex rules, so you can actually report on AI share of pipeline.

The attribution gap

AI assistants rarely send the neat referral strings traditional analytics expects:

  • Clean referrers — chatgpt.com, perplexity.ai, claude.ai arrive with recognizable domains, but your GA4 channel groupings probably don't classify them.
  • Stripped parameters — some AI surfaces strip tracking, pushing sessions into Direct.
  • In-app browsing — ChatGPT's browser renders pages with its own referrer context, which varies by platform and over time.

The result: an AI-driven demo request and a dark-traffic bounce look identical. And you cannot optimize a channel you cannot measure.

Step 1 — A shared UTM convention for AI sources

Reuse the discipline from our UTM tagging SOP, and add one reserved vocabulary for AI:

Parameter Convention Example
utm_source the AI platform chatgpt, perplexity, claude, gemini
utm_medium the channel ai_search
utm_campaign the topic or surface ai_citations or geo_q3

Keep everything lowercase, no spaces, and never reuse ai_search for paid or organic. Standardize before your team tags links, or you will split traffic across ChatGPT vs chatgpt forever.

AI traffic enters from places you partially control. Tag them all:

  • Docs and knowledge base — the pages ChatGPT extracts answers from
  • Directory and catalog listings — wherever a name, description, or CTA appears
  • Newsletters and cross-posts — content syndicated from your blog
  • Tool pages and calculators — high-citation, high-CVR surfaces
  • Comparison pages — the single most cited format in AI answers

Build links with the UTM Link Builder so nobody hand-types them.

Step 3 — GA4 regex channel grouping

Add a custom channel group in GA4 that catches AI referrers and your tagged links:

chatgpt\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|utm_medium=ai_search

Create a separate channel group (not the default "Referral") so AI traffic is never drowned by generic referrals, then build a report filtered on that group.

Step 4 — Tools that close the gap

When manual tagging isn't enough, specialized tools capture what UTMs miss:

  • Limy Analytics — AI visibility tracking plus referral-level attribution
  • Otterly.ai — citation and source tracking across generative engines
  • GA4 custom dimensions — free approach storing ai_source and ai_campaign on events

Use paid tools as a measurement layer, not a substitute for tagging — clean UTMs make every tool more accurate.

Step 5 — The monthly "AI share of pipeline" report

A 30-minute monthly routine:

  1. Pull sessions by your AI channel group for the month
  2. Join with demo/signup events (via custom dimensions)
  3. Compute AI share of pipeline = AI-sourced qualified leads ÷ total
  4. Note which queries/topics drove them (from utm_campaign)
  5. Feed winners into docs and comparison pages for the next cycle

Over two or three months, you get a channel you can actually optimize — which is more than most B2B teams can say about AI search today.

Why this pairs with GEO

Attribution tells you where the traffic came from; GEO tells you how to get more of it. Once you measure AI pipeline, the work you do on citations, comparison hygiene, and community presence has a feedback loop. See the GEO tools overview for the full toolkit.


UTM Link Builder · GEO & LLM Site Analyzer · Pricing

Frequently asked questions

Why does ChatGPT traffic show as Direct in GA4?

AI assistants often send visitors with clean referral paths (chatgpt.com, perplexity.ai) or stripped tracking parameters, so standard analytics bucketing can't classify them and they fall into Direct or generic Referral. Explicit UTM parameters and regex channel rules fix this.

What UTM medium should I use for AI search traffic?

Use a distinct medium such as ai_search (for example utm_source=chatgpt, utm_medium=ai_search) so it never collides with organic, referral, or paid. Keep values lowercase and consistent across all AI platforms.

Can I attribute a sale to an AI answer?

Yes, approximately. First-click and multi-touch models plus campaign parameters let you credit AI sources. Pair tagged links with AI-aware tools (Limy Analytics, Otterly.ai) or GA4 custom dimensions for a fuller picture.

Are there free ways to measure AI traffic?

Yes. GA4 regex channel groupings, a shared UTM convention, and a monthly manual check of ai_source/campaign reports cover the basics without paid tools.

More articles, guides, tools, and comparisons for this topic.

Free tool

Free LLM SEO Checker - GEO & llms.txt Audit Tool

Free LLM SEO checker: audit how ChatGPT, Perplexity, and Google AI Overview read your site. Check llms.txt, AI crawler access, JSON-LD schema, and server HTML readiness in 30 seconds. No sign-up.