The digital marketing landscape is currently undergoing its most significant transformation since the invention of the search engine. The rapid proliferation of artificial intelligence chatbots and generative tools—such as ChatGPT, Google Gemini (formerly Bard), Claude, and Microsoft Copilot—has fundamentally altered how users discover information and visit websites.

For businesses and marketers, this shift presents a complex challenge. Increasingly, visitors arrive at your website not through a traditional Google search result, but via a direct recommendation, citation, or shared link generated by an AI platform. If you are focused on a competitive local market, such as Kelowna SEO, or managing a global e-commerce brand, understanding exactly where your traffic originates is vital. If you cannot measure it, you cannot manage it.

Unfortunately, the default configuration of Google Analytics 4 (GA4) does not adequately account for this new behavior. It typically lumps this high-value traffic into the generic “Referral” bucket, effectively rendering it invisible as a distinct channel. This article will guide you through the process of identifying, tracking, and analyzing AI-originated sessions to regain control of your data.

Why We Must Track AI Referral Traffic

In the past, the path to a website was relatively linear. A user would type a query into a search engine, see a list of blue links, and click one. Today, “Answer Engines” are replacing search engines for many informational queries. A user asks ChatGPT a question, and the AI synthesizes an answer, often providing a citation link to the source of that information.

When a user clicks that citation, they enter your site. However, without specific tracking in place, you will not know if that user came from a low-quality directory or a high-authority AI recommendation.

By implementing the filters and strategies outlined below, you gain actionable insights into three critical areas:

  1. Visibility and Brand Authority: You will see how frequently AI tools rely on your content as a trusted source. Growth in this metric indicates that your content is authoritative and well-structured for Large Language Models (LLMs).
  2. Platform Performance: You will identify which specific AI tools provide the most referrals. For instance, you may find that Claude drives highly engaged traffic, while Bing Chat drives higher volume with lower engagement.
  3. User Behavior Analysis: You will understand the value of traffic from different AI systems. Do users coming from AI recommendations stay longer? Do they convert at a higher rate than social media traffic?

How We Did It: The Custom AI Referral Filter

At Purpose Driven Promotion, we recognized early on that our data was becoming diluted by unidentified AI traffic. To solve this, we implemented a custom analytics filter using a regular expression (regex) to match known AI and LLM referrer patterns.

This allows us to segment and analyze traffic from AI platforms separately from traditional referral sources. Below is the step-by-step guide to implementing this for your own website.

Part 1: The Regex String

Before entering Google Analytics, you need the “key” that identifies these traffic sources. We use a Regular Expression (regex) that looks for the names of the major AI platforms within the referral source data.

Copy the following text string:

(?:chatgpt|openai|bard|gemini|claude|llama|mistral|ai21|meta[\-_]?opt|copilot|perplexity|neeva|writesonic|bingai|bnngpt)

Note on Maintenance: The AI landscape changes weekly. New platforms launch, and old ones rebrand. It is important to revisit this list periodically to add new players to your tracking filter.

Part 2: Step-by-Step Implementation in GA4

There are two ways to view this data. The first is a quick check using a report filter, and the second is a more permanent setup using Channel Groups.

Method A: The Quick Filter (For Immediate Analysis)

If you wish to see your historical AI traffic immediately, follow these steps:

  1. Log In to Google Analytics 4 (GA4): Access the property for the website you wish to analyze.
  2. Navigate to Reports: On the left-hand menu, click Reports, then expand Acquisition, and select Traffic acquisition.
  3. Initialize the Filter: Look for the “Add filter” button (often represented by a funnel icon or a pill-shaped button) at the top of the report table.
  4. Configure the Conditions:
    • In the Dimension field, select Session source.
    • In the Match type field, select matches regex.
    • In the Value field, paste the regex string provided above.
  5. Apply and Review: Click Apply. The table will now reload to show only the sessions that originated from the AI platforms defined in your regex.

Method B: Creating a Custom Channel Group (The Permanent Solution)

While filters are excellent for quick checks, creating a Custom Channel Group is the superior method for long-term tracking. This allows “AI Traffic” to appear as a primary channel in your reports alongside “Organic Search,” “Email,” and “Direct.”

    1. Access Admin Settings: Click the Admin gear icon in the bottom left.
    2. Data Settings: Under Data display, select Channel groups.
    3. Create New Group: Click Create new channel group. Name it something clear, such as “Custom Channel Group with AI.”
    4. Add a New Channel:
      • Name the channel “AI Chatbots.”
      • Set the condition to: Source matches regex.
      • Paste the regex string from Part 1.
    5. Reorder: Ensure you drag this new “AI Chatbots” channel above the default “Referral” channel in the list. This ensures that GA4 classifies the traffic as AI before it defaults to the general Referral bucket.
  • Save: It is important to note that Channel Groups work forward-looking, meaning they will begin categorizing new data from the moment you save them.

Analyzing the Data: Best Practices

Once you have separated this data, the real work begins. Simply knowing you had 50 visits from ChatGPT is not enough; you must understand the context.

  1. Engagement Metrics vs. Volume

You may notice that AI referral traffic has a lower bounce rate than social media traffic. This is often because the user has already received a partial answer from the chatbot and is clicking through to your site for deep verification or specific details. They are “high-intent” visitors.

  1. Source/Medium Breakdown

Use the “Secondary Dimension” feature in your reports to break down the “AI Chatbots” channel by Source. This will tell you if your traffic is coming predominantly from copilot (Microsoft) or openai (ChatGPT). If you see a surge from Perplexity, it indicates your content is performing well in research-heavy queries.

  1. UTM Parameters

While you cannot control the links AI gives users, you can control the links you put into your own custom GPTs or AI agents. If you build a custom GPT for your business, ensure the links in its knowledge base use UTM parameters (e.g., utm_source=custom_gpt). This allows for precise attribution.

The Future of Search: Generative Engine Optimization (GEO)

Implementing this tracking is the first step toward Generative Engine Optimization (GEO). Just as SEO focuses on ranking in Google, GEO focuses on being cited by AI.

By tracking which pages receive the most AI traffic, you can reverse-engineer what makes that content attractive to Large Language Models. Typically, this involves:

  • High Authority: Statistical data and original research.
  • Clear Structure: Well-formatted headings and lists that are easy for machines to parse.
  • Direct Answers: Concise summaries at the start of articles.

Conclusion

The era of the ten blue links is evolving into an era of conversational answers. By actively tracking referrals from AI platforms, Purpose Driven Promotion delivers deeper data insights for clients adapting to this rapidly evolving search landscape.

Do not let your most innovative traffic sources remain hidden in a generic “Referral” folder. Implementing an AI referral filter will empower your SEO or marketing team to see which tools amplify your reach and make informed optimizations based on actual user journeys.

Let’s Work Together

TELL US MORE ABOUT YOUR PROJECT

Let us help you get your website found.  Or, if you simply have a few questions, then fill out the form below and we will get back to you.