Track AI referrals in analytics

AI assistants send traffic through referrers that analytics tools group inconsistently. Build a channel group for chatgpt.com, perplexity.ai, claude.ai, copilot.microsoft.com and gemini.google.com, and review landing pages monthly. Many apps strip referrers, so treat the data as directional.

lowIn codeimpact effort

Why this matters

Group assistant referrers so the traffic is visible at all.

Get the full breakdown

The extended brief explains when this works, when it does not, and the trade-offs. Join the waitlist and it unlocks for every tip when sign-in opens; MCP access is the paid part.

Join the waitlist

Before you start

  • GA4 access
  • Server log access

How to apply it

  1. Build the channel group General best practice

    In GA4, create a channel group with rules matching the known AI assistant domains. Include subdomains and regional variants.

    Check: The channel group exists and a test session with referrer chatgpt.com lands in it.

  2. Segment by landing page General best practice

    Break the AI channel down by landing page and by event completion. Identify pages that receive assistance-driven visits but no conversion path.

    Check: A report lists at least five landing pages with AI-attributed sessions and key events.

  3. Fill gaps with server logs General best practice

    Check logs for assistant user agents and referral parameters that analytics misses, and reconcile the counts monthly.

    Check: Log-derived AI visits and analytics AI sessions are compared in one monthly document.

Get the prompt for your agent

A ready-to-paste prompt for your agent that implements this tip and verifies the result in your repo.

Join the waitlist

Source: seo-mcp playbook · curated entry · report an error

Framework notes

nextjs-app

If GA4 is loaded through `next/script`, confirm it fires on every route change; client-side navigation can otherwise miss sessions.

static-html

A single GA4 gtag snippet in the shared head covers all pages; check that consent mode does not drop assistant traffic silently.

Official references

Let your agent apply this + 161 more tips.

Pre-order — $19