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

> AI search sends real B2B pipeline that GA4 mislabels as Direct. Configure UTMs, regex channel groups for ChatGPT, Perplexity, Claude, and Gemini, and measure AI share of pipeline.

Canonical: https://useneedle.net/blog/ai-search-attribution-tracking
Published: 2026-08-05

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](https://useneedle.net/blog/utm-tagging-campaign-attribution-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.

## Step 2 — Where to plant tagged links

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](https://useneedle.net/tools/utm-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](https://useneedle.net/blog/how-to-get-cited-by-chatgpt-organic-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](https://useneedle.net/blog/ai-visibility-and-geo-tools-saas-2026) for the full toolkit.

---

**[UTM Link Builder](https://useneedle.net/tools/utm-builder)** · **[GEO & LLM Site Analyzer](https://useneedle.net/tools/geo-llm-analyzer)** · **[Pricing](https://useneedle.net/pricing)**

## FAQ

### 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.

---

From Needle (https://useneedle.net). HTML version: https://useneedle.net/blog/ai-search-attribution-tracking
