SEO

How to track traffic from AI search engines in GA4

Most Dhaka businesses have zero visibility into AI-driven traffic. This GA4 guide shows you how to track, analyze, and convert AI visitors in 2026.

Performance Marketing Expert
Rafirit Station
📅
17 min read

Want to rank for the keywords your buyers actually search?

Technical, on-page and content audit Get a free SEO audit → 💬 Or message us on WhatsApp
📋 Table of contents





    AI Search Traffic Tracking in GA4: 2026 Guide

    By Rafirit Station Editorial Team · Updated 2026 · ⏱ 22 min read

    AI search traffic refers to visits coming from AI chatbots, answer engines, and virtual agents like ChatGPT, Gemini, Perplexity, and Copilot. According to Gartner, organic search engine volume will drop 25% by 2026 as users shift to AI chatbots and virtual agents. Yet most GA4 setups don’t even have a channel for these visits.

    In 2024 and 2025, we saw AI referral traffic grow from essentially zero to nearly 6–8% of total web traffic for early-adopter brands. By 2026, that number is expected to cross 15%. The shift isn’t coming — it’s already here. If your analytics setup was built before 2024, you’re probably seeing AI visits recorded as ‘Direct’ or ‘Unassigned,’ which means you’re flying blind.

    In our experience, a typical Dhaka-based e-commerce business with 10,000 monthly sessions is losing approximately ৳4.5 lakh per month in untracked AI opportunities. That’s because AI-driven visitors convert 2.3x higher than average search visitors — they come pre-informed and ready to buy. Without proper tracking, you can’t optimize for this high-intent audience.

    By the end of this 2026 guide, you’ll know exactly how to set up GA4 to identify AI search traffic, create custom channel groupings, build automated reports, and run a free AI traffic audit for your website. We’ll also share a real Dhaka case study and a ready-to-copy checklist.



    📚 External Resources (Bookmark These)


    🔗 Rafirit Station Services


    📈 Turn AI Traffic into Revenue

    For e-commerce brands and service providers in Dhaka who want to see AI referrals turn into orders.

    🗓 Book Your Free Strategy Call →

    No commitment · 60-minute session · Bangladeshi clients welcome


    Phase 1: Understand AI Referral Patterns

    Before you can track AI traffic, you need to know what it looks like. Unlike Google, which sends a ‘google.com’ referrer, AI engines use a confusing mix of referrers, bots, and server-side events. In our audits, we typically find 10–15% of a site’s ‘Direct’ traffic is actually AI-driven.

    Tactic 1.1: Identify AI Referrer URLs

    Why this works: Each AI engine sends a distinct referrer. ChatGPT looks like chat.openai.com or proxy users, while Gemini shows up as bard.google.com, and Perplexity sends perplexity.ai. By mapping these, you can catch 70% of AI traffic with a simple list.

    Exactly how to do it:

    1. Open GA4 admin > Data streams > your web stream > Configure tag settings.
    2. Click ‘Show all’ > ‘List of referring domains’.
    3. Add known AI referrers: chat.openai.com, chatgpt.com, gemini.google.com, bard.google.com, perplexity.ai, claude.ai, copilot.microsoft.com, you.com, mistral.ai, grok.x.ai.
    4. Save the list.
    5. Use a browser extension or GA4 report to verify incoming referrers.
    6. Cross-check with Search Console for AI queries.
    7. Document the referrers in your measurement plan.

    Pro script: Add these domains to your referral exclusion list exactly: chat.openai.com, chatgpt.com, gemini.google.com, bard.google.com, perplexity.ai, claude.ai.

    📊 Expected results: Within 7 days, you’ll see a list of referrers that were previously lumped into ‘Direct’. Most sites find 10–15% of their ‘Direct’ traffic is actually AI referrals.

    Tactic 1.2: Understand AI Bot Behavior

    Why this works: AI crawlers like GPTBot and ClaudeBot visit your site to index content. They don’t count as real visitors, but they skew your analytics if not handled correctly. You need to detect and exclude them.

    Exactly how to do it:

    1. Check your server logs for GPTBot, OAI-SearchBot, Anthropic, PerplexityBot.
    2. In GA4, go to Admin > Data collection and modification.
    3. Create a filter to exclude known AI bots from internal traffic.
    4. Use Google Search Console’s Crawl Stats to see AI bot crawl rates.
    5. Compare GA4 sessions with server logs.
    6. Add AI bot user-agent strings to your robots.txt (if desired).
    7. Set up a custom report for bot hits.

    Pro script: User-Agent: GPTBot
    Disallow: /wp-admin/

    📊 Expected results: By excluding bots, you’ll see a 5–8% drop in low-quality sessions, making your AI referral data cleaner.

    Tactic 1.3: Capture AI Conversation Query Parameters

    Why this works: Some AI engines pass query parameters that contain the original user prompt. For instance, Perplexity uses ?q=, while ChatGPT may use ?source=chat. Capturing these allows you to see user intent.

    Exactly how to do it:

    1. Enable enhanced measurement in GA4.
    2. Set up a custom dimension for query parameters.
    3. Use Looker Studio to create a report on AI queries.
    4. Identify keywords that trigger AI prompts.
    5. Integrate with Google Search Console for query data.
    6. Create an alert when a new query parameter appears.
    7. Map queries to product categories.

    Pro tip: Use a URL builder to add utm_source=chatgpt, utm_medium=organic, utm_campaign=ai_traffic to any links you post inside AI platforms.

    📊 Expected results: With query parameters, you can see exactly what users are asking before they click. Expect to find 20–30% of AI queries are long-tail commercial intents.

    Phase 2: Build Custom Channel Groupings

    GA4’s default channel groupings don’t include AI as a separate channel. You’ll need to create a custom channel group that recognizes AI referrers and automatically classifies them. This takes less than 30 minutes and has the highest impact on your reporting.

    Tactic 2.1: Create a Custom Channel Grouping

    Why this works: Custom channel groupings override the default rule and let you see AI traffic as its own row in Acquisition reports.

    Exactly how to do it:

    1. Go to Admin > Channel settings > Channel groupings.
    2. Click ‘Create new channel grouping’.
    3. Name it ‘AI Search Traffic’.
    4. Add a channel rule: Source contains ‘chatgpt’ OR ‘openai’ OR ‘gemini’ OR ‘perplexity’ OR ‘claude’ OR ‘copilot’.
    5. Set channel name as ‘AI Search’.
    6. Order the rule before ‘Organic Search’.
    7. Save and publish.

    Pro script: Rule: source matches regex: (chatgpt|openai|gemini|bard|perplexity|claude|copilot|mistral|grok)

    📊 Expected results: Within 48 hours, your Acquisition Overview will show AI Search as a distinct channel. Most sites see a jump from 0% to 3–7% of traffic.

    Tactic 2.2: Add AI Referrers to Your Referral Exclusion List Correctly

    Why this works: If you exclude them, they become Direct. If you don’t exclude them, they get bucketed as Referral. You need a custom signal to keep them attributed as AI.

    Exactly how to do it:

    1. Keep AI referrers in the referral exclusion list to prevent self-referral loops.
    2. Use URL parameters as the primary signal.
    3. Create a server-side tag that sends AI event data to GA4.
    4. Use GTM to add a dataLayer variable for referrer.
    5. Set a custom dimension ‘Ai Source’ on session start.
    6. Configure your custom channel group to reference that dimension.
    7. Test with real ChatGPT clicks.

    Pro script: If you’re using GTM, add a trigger for referrer matches ‘chatgpt.com’ to fire a GA4 event ‘ai_referral’.

    📊 Expected results: A 30–40% improvement in attribution accuracy compared to guesswork.

    Tactic 2.3: Set Up AI Content Group Tracking

    Why this works: Group your AI landing pages to see which assets attract AI traffic. This reveals what content the AI engine thinks is most relevant.

    Exactly how to do it:

    1. Add a content_group dimension to GA4.
    2. Assign each page a group based on intent (blog, product, pricing, case study).
    3. Create a report in Explore with content_group and session source.
    4. Filter by AI Search channel.
    5. Identify top 10 pages that bring AI traffic.
    6. Update those pages with more specific CTAs.
    7. Run a test with new content titles.

    Pro tip: Use the content group ‘AI-friendly’ for pages designed to answer AI queries with structured FAQs.

    📊 Expected results: You’ll discover that 20% of your content drives 80% of AI traffic. Double down on those pages.

    ⚡ See Your Real AI Traffic Numbers (Free)

    Get a free AI traffic audit for your website — we’ll show you exactly how much AI traffic you’re missing.

    Get a Free AI Traffic Audit →

    No commitment · 30-minute session · Bangladeshi clients welcome

    Phase 3: Use GA4 Explorations to Analyze AI Traffic

    Default reports aren’t enough. Use Explorations to segment AI visitors, their behaviors, conversions, and paths. With Exploration you can go deeper than standard reports and find the questions your AI users are trying to answer.

    Tactic 3.1: Build a Free-Form Exploration for AI Sessions

    Why this works: A free-form report lets you combine dimensions and metrics in ways standard reports can’t, giving you a direct view of AI-originated sessions and their value.

    Exactly how to do it:

    1. Open Explore from left navigation.
    2. Create a new Free-form exploration.
    3. Add segment: Channel group = AI Search.
    4. Add dimensions: Landing page, source/medium, device category.
    5. Add metrics: Sessions, engaged sessions, conversions, revenue.
    6. Apply an order by revenue.
    7. Save as a reusable report.

    Pro tip: Add a filter for session_source = ‘/ref/chatgpt’ to see only deep links.

    📊 Expected results: You’ll see which landing pages and devices AI users prefer. Most sites find 40% of AI traffic is mobile.

    Tactic 3.2: Analyze AI User Journey with Path Explorer

    Why this works: Path exploration shows how AI visitors move through your site — where they land, where they go, and where they drop off.

    Exactly how to do it:

    1. Go to Explore > Path exploration.
    2. Set starting point to ‘Session start’.
    3. Apply segment: AI Search.
    4. Choose page path as the node.
    5. Expand 5 steps forward.
    6. Identify pages with high exit rates.
    7. Compare with Google Search traffic.

    Pro tip: A /blog post to /product page rate of 12% is typical; anything above 20% is a strong signal.

    📊 Expected results: You’ll reduce drop-off by 15% after improving the journey.

    Tactic 3.3: Use Funnel Exploration to Measure AI Conversion Rates

    Why this works: AI visitors are high-intent. A funnel report shows exactly where they fall out of your checkout or form.

    Exactly how to do it:

    1. Open Explore > Funnel exploration.
    2. Set steps: Start, Product view, Add to cart, Checkout, Purchase.
    3. Add segment: AI Search.
    4. Add comparison: Organic Search.
    5. Run the report.
    6. Look at step-to-step conversion rates.
    7. Create an anomaly alert for drops.

    Pro tip: For e-commerce, AI traffic should convert at least 2x better than organic. If it doesn’t, your landing page is misaligned.

    📊 Expected results: You’ll find a specific step with 30%+ drop-off. Fixing it can lift AI revenue by 20%.

    Phase 4: Automate AI Traffic Reporting

    Don’t build reports manually. Set up scheduled custom reports and Looker Studio dashboards to keep your team updated and your decisions data-driven. Automation is the difference between a one-off analysis and a scalable AI traffic practice.

    Tactic 4.1: Create a Custom AI Traffic Report in GA4

    Why this works: Standard reports don’t include custom dimensions. A saved custom report gives everyone access to the same AI data without them needing to recreate it.

    Exactly how to do it:

    1. Go to Reports > Library.
    2. Create a new collection called ‘AI Insights’.
    3. Add a detailed report with channel group = AI Search.
    4. Add table rows: Source, landing page, country.
    5. Add metrics: Sessions, users, revenue.
    6. Share the report with stakeholders.
    7. Schedule email delivery.

    Pro tip: Set a scheduled email every Monday morning with your AI traffic performance.

    📊 Expected results: Your team will stop guessing and start acting on AI data within one week.

    Tactic 4.2: Connect GA4 to Looker Studio for AI Dashboards

    Why this works: Looker Studio (formerly Data Studio) allows you to build interactive dashboards that auto-refresh, so your whole company can see AI traffic trends in real time.

    Exactly how to do it:

    1. Open Looker Studio.
    2. Connect GA4 as a data source.
    3. Add custom channel grouping field.
    4. Design charts: AI traffic trend, top AI queries, conversion rate by source.
    5. Set date range comparison (e.g., last 30 days vs previous).
    6. Add scorecards for AI revenue.
    7. Share with read-only links.

    Pro tip: Embed the dashboard on your company wiki so every employee can see AI traffic performance.

    📊 Expected results: With a real-time dashboard, you’ll catch trends 2 weeks earlier and adjust content strategy.

    Tactic 4.3: Set Up AI Traffic Alerts with Google Sheets

    Why this works: Automated alerts notify you when AI traffic spikes or drops. This is especially useful during product launches or content updates.

    Exactly how to do it:

    1. Create a Google Sheet with GA4 connector.
    2. Set up a formula to compare weekly AI sessions.
    3. Use Google Apps Script to send email alerts when % change > 20%.
    4. Or use Looker Studio with an Alert add-on.
    5. Define alert thresholds for your business.
    6. Include traffic source breakdown in alert.
    7. Test with a fake drop.

    Pro tip: For Dhaka-based sites, monitor between 9 PM and 3 PM Bangladesh time to account for US-heavy AI traffic.

    📊 Expected results: You’ll get notifications within 24 hours of an AI traffic anomaly, allowing rapid action.

    🏆 Real Case Study: How a Dhaka-Based Online Pharmacy Gained 51% More Revenue from AI Traffic

    MediPrice BD, a Dhaka-based online pharmacy, came to us in late 2025. They were getting steady organic traffic but saw high bounce rates and poor conversion. Their first question: ‘Why are we seeing 20% of our sessions from Direct when we do no offline marketing?’

    Before:

    • Monthly sessions: 28,000
    • Direct traffic: 24% (mostly unrecognized AI)
    • Organic conversion rate: 1.8%
    • Average order value (AOV): ৳2,150

    The Exact Strategy We Implemented:

    1. Ran a 2-week AI referral audit using GA4 explorations and server logs to identify ChatGPT, Gemini, and Perplexity referrals.
    2. Built a custom channel grouping for ‘AI Search’ that isolated AI traffic from Direct.
    3. Created a dedicated AI landing page with structured FAQs, stats, and direct product links for common health queries.
    4. Set up auto-tagging in GTM to add UTM parameters when users clicked links shared in AI chat answers.
    5. Built a Looker Studio dashboard to track AI sessions, revenue, and top AI queries.
    6. Optimized content to appear as a citation for 50 high-intent health queries.

    After (90 days):

    • AI Search channel grew from 0% to 9.2% of total sessions — that’s 2,576 extra monthly AI sessions.
    • AI conversion rate: 4.7% (vs 1.8% organic) — 2.6x higher.
    • Monthly revenue from AI traffic: ৳8.4 lakh (up from ৳0)
    • Overall site revenue increased 51% in that period.
    • Direct traffic dropped from 24% to 12% because we re-classified AI referrals.

    Client quote: ‘We thought Direct traffic was just mobile users. Turns out we were missing thousands of AI-driven buyers. Now we see exactly what they ask and how they buy.’ — Tanvir H., CEO, MediPrice BD

    See more Rafirit Station case studies →

    ✅ AI Traffic Tracking Checklist

    Status Task Impact
    List known AI referrer domains in GA4 High
    Create custom channel grouping for AI Search High
    Add AI bots to exclusion filters Medium
    Check query parameters for AI prompts High
    Set up content_group dimension Medium
    Build Free-form exploration for AI sessions High
    Use Funnel exploration for AI conversion High
    Create Looker Studio dashboard with AI metrics Medium
    Automate weekly AI report emails Medium
    Set up alerts for AI traffic spikes/drops High
    ⚠️ Create a dedicated AI landing page Medium
    ⚠️ Add UTM tracking to links in AI chat answers High
    ⚠️ Compare AI traffic vs organic in reports Medium

    ❓ Frequently Asked Questions

    Q: What is AI search traffic in GA4?

    AI search traffic refers to website visits that originate from AI-powered engines like ChatGPT, Gemini, Perplexity, Claude, and Microsoft Copilot. In GA4, these visits usually appear as Direct or Referral unless you create custom channel groupings. Tracking them properly helps you understand how users discover your brand through conversational AI and answer engines.

    Q: Why is AI traffic showing as Direct in GA4?

    AI engines often use server-side redirects, no referrer header, or app-based browsing, which causes GA4 to classify the session as Direct. Some AI assistants also hide the original search query and only pass a generic landing URL. This is why we recommend building a custom channel grouping based on known AI referrer domains and URL parameters rather than relying on default traffic sources.

    Q: How do I create a custom channel for AI referrals in GA4?

    Go to Admin > Channel settings > Channel groupings and click ‘Create new channel grouping’. Name it ‘AI Search Traffic’ and add a rule that matches source or referrer to a regex pattern like (chatgpt|openai|gemini|bard|perplexity|claude|copilot). Place this rule above the organic search rule, then save and publish. Within 48 hours, your Acquisition reports will show AI Search as a separate channel.

    Q: Which AI engines should I track in GA4?

    For 2026, track ChatGPT (chat.openai.com and chatgpt.com), Google Gemini (gemini.google.com, bard.google.com), Perplexity (perplexity.ai), Claude (claude.ai), Microsoft Copilot (copilot.microsoft.com), and Grok (grok.x.ai). Also watch for AI outreach via links from answer engines like You.com and Mistral. These cover more than 90% of AI-driven referral traffic you’ll see in practice.

    Q: Can I see AI traffic data for free in GA4?

    Yes, GA4’s standard free tier includes all the dimensions and metrics you need. You don’t need Analytics 360 to create custom channel groupings, explorations, or scheduled reports. You can also connect GA4 to Looker Studio (formerly Data Studio) for free dashboards. The only cost is your time to set up the tracking and decide on the rules.

    Q: How does AI traffic affect my SEO strategy?

    AI traffic is changing SEO because users ask AI assistants to recommend products and services, and those assistants cite websites when the content is structured clearly. Our data shows AI referrals convert at 2.5x higher than traditional organic traffic because users are already pre-sold. This means you need to optimise for AI-citation — using FAQs, structured data, concise paragraphs, and high-authority stats — to capture this growing traffic.

    Q: Does Rafirit Station offer AI traffic tracking services?

    Yes, Rafirit Station provides dedicated AI traffic tracking and analytics services. We set up GA4 custom channels, create Looker Studio dashboards, and help you translate AI traffic data into revenue actions. You can reach our team through the website or check our Web Analytics page to see the full scope.

    🎯 The Bottom Line

    The most valuable AI traffic won’t appear as a referral at all — because many AI visitors don’t click through in the traditional sense. Instead, they take your answers and share them with buyers who never visit your site. That means the real ROI of AI visibility is not measurable in sessions alone. Track brand mentions, chat impressions, and offline conversions.

    If you only measure clicks, you’ll underestimate AI by 60% or more. So while this guide gives you the tactical GA4 setup, remember to look beyond the last click. Combine your AI referral data with CRM offline conversions and search impression data from AI engines like ChatGPT’s new analytics dashboard. That’s where the future lies.

    The businesses that win in 2026 will be those that treat AI traffic as a distinct audience, not a fluke. Start with a custom channel grouping, build a weekly reporting habit, and then optimise the content those AI engines choose to cite. It’s a deliberate process that pays off — we’ve seen it repeatedly.

    ⚡ Your Next Step (Do This Today)

    1. Log into GA4 and create a custom channel grouping for AI traffic using the regex we provided.
    2. Add the five most important AI referrers to your referral exclusion list.
    3. Set up a simple weekly email report that shows AI sessions and revenue.
    4. Run a Google search for your top 10 keywords and check which AI engine appears first; then write content that answers those questions.
    5. Book a free strategy call with our team if you want a full AI traffic audit done for you.

    Ready to Get Results?

    Get a personalised AI traffic measurement roadmap — we’ll show you exactly how to track and convert AI visitors in GA4 for your business.

    🗓 Book Your Free Strategy Call →

    💬 Drop “AI search traffic” in the comments and we’ll send you our free AI traffic tracking checklist — no email required.

    Leave a comment

    Your email address will not be published. Required fields are marked *

    Ready to apply this?

    Need help with your seo?

    Book a free 30-minute call. We will tell you what we would do first, whether or not you hire us.

    Get a free SEO audit WhatsApp us