Analytics & Reporting Tool

GA4 AI-Referral RegEx & GSC BigQuery SQL Generator

Enter your brand variants and BigQuery dataset name to generate ready-to-paste GA4 Custom Channel Group RegEx for ChatGPT/Perplexity/Claude, GSC RE2 filters, and Looker Studio-ready BigQuery SQL queries.

7 engines
ChatGPT, Perplexity, Claude, Gemini, Copilot, Meta, You
46.08%
Anonymized GSC clicks preserved via URL-table SQL
5 outputs
GA4 RegEx, GSC RE2 & 3 BigQuery SQL views

AI Assistants Included In GA4 Custom Channel Group RegEx

# GA4 Admin -> Data display -> Channel groups -> Add "AI Search & Assistants" ABOVE Referral
# Condition: Session source matches regex:
^(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|edgeservices\.bing\.com|meta\.ai|you\.com)$

Frequently Asked Questions

Where must the AI Search Custom Channel Group sit inside GA4?
Reorder your custom 'AI Search & Assistants' channel rule ABOVE the default Referral channel in GA4 Admin -> Data display -> Channel groups so ChatGPT and Perplexity visits are not swallowed by generic Referral.
Why does the Decay Triage SQL query searchdata_url_impression instead of site_impression?
Query-level Search Console tables drop ~46.08% of anonymized long-tail clicks; querying searchdata_url_impression captures 100% of real URL-level clicks for accurate quarter-over-quarter decay tracking.
Does GSC Bulk Data Export to BigQuery cost money for small and mid-size sites?
Google Search Console exports at $0, and Google Cloud BigQuery's permanent free tier includes 10 GB of storage and 1 TB of SQL queries per month—covering most content hubs for $0.

Primary Sources

Verified

Related Research Guides