The Dark Funnel: How to Track Perplexity and ChatGPT in GA4

The Dark Funnel: How to Track Perplexity and ChatGPT in GA4
DEFINITION

Perplexity Referral Traffic is the segment of inbound visits originating from the Perplexity.ai answer-engine interface, identified in GA4 by the source perplexity.ai and medium referral. Unlike traditional search traffic (categorized as organic), these visits are often misclassified as generic referrals or "Direct" traffic, requiring custom regex filters and Channel Groups to attribute them to your Share of Model efforts.

The Problem: The "Dark Funnel" of AI Traffic

Marketing teams rely on the "Organic Search" bucket to measure SEO success. But answer engines like Perplexity don't behave like Google, and that breaks attribution in three ways.

01
Misclassification. GA4's default channel definitions dump Perplexity traffic into the generic "Referral" bucket, mixing high-intent AI users with random backlink clicks from low-quality blogs.
02
The "Direct" void. If a user opens a link from the Perplexity mobile app, the referrer header is sometimes stripped, so the visit appears as "(Direct) / (none)."
03
Attribution blindness. You might be winning the Share of Model war (appearing in thousands of answers) but if you aren't filtering specifically for perplexity.ai, your dashboard shows flat growth while your real visibility explodes.

You can't calculate the ROI of an AEO strategy if you can't tell a user clicking a link in a 2015 blog post from a user clicking a citation in a live Perplexity answer. This is the same invisibility we mapped as the AI Dark Funnel, now seen from the analytics side.

The AI Dark Funnel in GA4: a Perplexity citation click is correctly captured as an AI Answer Engine channel under custom tracking, but under default GA4 it scatters into the generic Referral bucket or the Direct voidWhere Your Perplexity Click LandsSame visit, two GA4 configurationsPerplexity citationhigh-intent clickDEFAULT GA4"Referral" (mixed w/ junk blogs)"(Direct) / (none)" voidInvisible. ROI uncountable.CUSTOM CHANNEL"AI Answer Engines"a clean, top-level line itemVisible. Trend trackable.

The Solution: Custom Channel Grouping

Don't just build a filter. Make a permanent infrastructure upgrade: a new "Channel Group" in GA4 specifically for AI answer engines. This lets you see "AI Traffic" side by side with "Organic Search" and "Paid Social" in your acquisition reports.

Step 1: The Regex Pattern

You need a regular expression that captures Perplexity and its peers (ChatGPT, Claude, Gemini, Copilot).

Regex · Source match
perplexity\.ai|chatgpt\.com|gemini\.google\.com|claude\.ai|copilot\.microsoft\.com

Step 2: Create the Custom Channel

01
Go to Admin > Data display > Channel groups.
02
Select "Create new channel group" (based on the Default Channel Group). Name it "AEO / AI Channels".
03
Click "Add new channel." Name: AI Answer Engines. Condition: Source matches regex using the snippet above.
04
Order: drag this channel to the TOP of the list. If you leave it at the bottom, the "Referral" rule catches it first.

Step 3: Verification

Once saved, wait 24 hours. Navigate to Reports > Acquisition > Traffic acquisition and switch the primary dimension to "AEO / AI Channels." You should now see a distinct row for Perplexity traffic.

Default vs. Custom Tracking

Feature

Default GA4 "Referral"

Custom "AI Channel" Group

Visibility

Buried inside thousands of referrals

Top-level line item

Accuracy

Low (mixed with blogs/news)

High (strictly AI engines)

Trend Analysis

Impossible (too noisy)

Clear (track AEO growth)

Conversion Rate

Diluted

Specific (often higher intent)

Retroactive?

No (applies moving forward)

Yes (in some reporting views)

Code Example: The "Quick Check" Exploration

No Admin access to create Channel Groups? Use this Exploration to audit your traffic immediately. Set dimensions to Session source / medium, metrics to Sessions, Engaged sessions, and Conversions, then filter Session source by this regex.

Regex · Exploration filter
# Perplexity and major AI referrers perplexity\.ai|chatgpt|bing\.com\/chat|bard\.google\.com|claude\.ai

Analysis tip: if you see high traffic from perplexity.ai but zero conversions, check your client-side rendering. The AI user may be landing on a page that loads too slowly or looks broken compared to the concise answer they just read, the empty-shell problem.

See your AI referral traffic without touching GA4.

Free audit. Surfaces which answer engines are sending you visitors and whether your landing pages convert them or lose them.

Measure your AEO traffic →

Key Takeaways

  1. Referral is not referral. Stop treating Perplexity traffic like a backlink. It's a search-intent query, functionally identical to SEO but with higher qualification.
  2. Order matters. When creating Custom Channel Groups, the order is strict. Place your "AI Engines" rule above the standard "Referral" rule, or GA4 ignores it.
  3. Cross-reference logs. GA4 relies on client-side headers. If users are on the Perplexity app, headers may be stripped. Compare against your server log analysis for ground truth.
  4. The Bing nuance. Perplexity sometimes uses Bing's index, so traffic can be misattributed to bing / organic. Watch for concurrent spikes.
  5. Conversion intent. Early data suggests Perplexity users have higher time-on-page than Google users because they're pre-qualified by the AI's summary.

References & Further Reading

  1. Google Analytics Help: Custom Channel Groups. Official documentation on how to configure channel grouping logic. https://support.google.com/analytics/answer/13051316
  2. Perplexity AI: User-Agent Strings. Identifying the specific bot and referrer strings used by the Perplexity engine. https://docs.perplexity.ai/docs/perplexity-bot
  3. Website AI Score: Share of Model metrics. How to track your visibility beyond rankings. https://websiteaiscore.com/blog/share-of-model-vs-rank-tracking
GEO Protocol: Verified for LLM Optimization
Hristo Stanchev

Audited by Hristo Stanchev

Founder & GEO Specialist

Published on December 30, 2025