Blog

  • How to Track AI Traffic in Google Analytics: A Step-by-Step Guide

    How to Track AI Traffic in Google Analytics: A Step-by-Step Guide

    You may be wondering if your site receives some traffic from LLMs. Currently, there are two ways to set up Google Analytics for AI-driven traffic.

    • Creating a new channel group
    • Setting up an exploration report

    How to create an AI-search traffic channel group

    1. Open Google Analytics and navigate to the Admin tab

    2. Scroll down to Data display and select Channel groups

    3. Create a new group and channel

    • Select Create new channel group
    • Give your group channel a name: AI-driven channels
    • Then add a new channel and enter a name: AI-driven search
    • For the conditions, select source and matches regex and paste the following expression:

    Now you can see in your user acquisition report what landing pages AI tools are sending people to.

    How to set up an exploration report to measure AI-driven traffic

    Here is how you can create a simple AI-driven referrals report in GA4. It shows how many visits from LLMs the site received and how many key events (like signup, purchase, button click, etc.) were triggered by those visits.

    1. Open Google Analytics and navigate to the Explore tab

    Screenshot of Google Analytics dashboard featuring an search bar at the top, with the left navigation menu displaying Home, Reports, Explore, and Advertising options.

    2. Create a new exploration report

    Screenshot of the "Explorations" page in Google Analytics, showing options to start a new exploration: Blank, Free form, Funnel exploration, and Path exploration.

    3. Name your report and select dimensions and metrics

    • Give your report a name: AI referral traffic & key events
    • Under segments, click the plus button, select All Users and click Confirm.
    • For dimensions, click the plus button, search for Session source / medium and Page referrer. Click Confirm.
    • For metrics, click the plus button, search for Key events and Sessions. And click confirm.
    Analytics interface showing variables for AI referral traffic. Includes exploration name, date range, segments, dimensions, and metrics with a clean layout.

    4. Move the dimensions and metrics

    In the Settings, drag and drop both dimensions to the columns section, and both metrics to the values section.

    Alt text: Analytics settings panel showing variables and settings for an exploration named "AI referral traffic & key events." Includes metrics like "Key events" and "Sessions," with configuration for bar chart visualization.

    5. Apply a filter

    In the final step, scroll down to filters. Drag and move the Page referrer to the filters section. Select matches regex and paste the following expression:

    Conclusion

    You can see how many visits from AI tools your site received and what pages those visitors visited, and what else they did on your site. Now you can improve those pages and reverse engineer what questions these pages answer in AI tools.