Miyeta

How to Track AI Shopping Traffic and Sales in Shopify | Miyeta

miyeta·
How to Track AI Shopping Traffic and Sales in Shopify | Miyeta

Measuring AI shopping is not as simple as counting visits from a new referral domain. A shopper may click a link from an AI assistant with a referrer, open a shared product URL in a new tab, copy and paste a link, or arrive through a product channel whose performance is reported separately by the commerce platform. Meanwhile, AI crawlers can request product pages without representing a human shopping session at all.

The right goal is not to promise perfect attribution. It is to build a transparent measurement system that separates observed AI referrals, AI crawler activity, product discovery tests, and orders reported by the commerce platform.

For Shopify stores using Agentic Storefronts, begin with Shopify's own channel reporting. Shopify documents sales, orders, online-store sessions, and online-store conversion metrics for supported agentic channels under Sales channels > Agentic. Reporting availability and definitions can vary by store setup, and Shopify notes that some analytics features are not available for headless stores. See Managing agentic storefronts.

Use GA4 and server logs as complementary evidence, not as unquestionable sources of truth.

Why AI shopping attribution is incomplete

Several measurement constraints make an exact AI-shopping total difficult to calculate.

1. A referrer is not always present or specific

Some visits from AI assistants carry a recognizable referrer such as chatgpt.com or perplexity.ai. Others may arrive without a usable referrer because of the user's path, browser behavior, app context, privacy settings, redirects, or link copying. The exact behavior varies by platform and can change.

When a visit has no usable campaign information, analytics systems may classify it as Direct or (none). But Direct also includes many legitimate non-AI visits, such as manually entered URLs and bookmarks. An increase in Direct traffic is a reason to investigate, not a reliable estimate of AI traffic and not an AI-traffic lower bound.

2. A crawler request is not a shopper session

A bot may fetch a page to index, retrieve, or process content. That request may appear in a CDN or server log without a human opening the page in a browser, generating a GA4 session, or making a purchase.

Do not count requests from GPTBot, OAI-SearchBot, PerplexityBot, ClaudeBot, or other crawlers as customer visits. Their purpose differs by operator. OpenAI, for example, distinguishes OAI-SearchBot for ChatGPT search discovery, GPTBot for crawling that may be used in training, and ChatGPT-User for certain user-triggered fetches. See OpenAI's crawler documentation.

3. Standardized UTM parameters are not guaranteed

A merchant cannot assume that every AI assistant will append the same UTM parameters to every outbound link. Some platforms or merchant-controlled feed links may provide specific tracking mechanisms, but attribution depends on the channel and link path. Do not build the entire measurement system around a universal utm_source=chatgpt parameter that may not exist.

4. Different reports can describe different events

A product mention in a model answer, a crawler fetching the product page, a referral session, a product click, and a completed order are five different events. A system that measures one does not automatically measure the others.

This guide uses three layers so these events remain separate.

Track 1: Session and traffic source

The first layer measures visits that can be observed as sessions or inbound requests.

Start with Shopify's Agentic reporting

If the store has Agentic Storefront reporting available, open Shopify Admin and go to Sales channels > Agentic. Review the available channel-level data, such as sales, orders, online-store sessions, and online-store conversion. Use the same reporting window when comparing channels and periods.

This should be your starting point because Shopify manages the Agentic Storefront distribution path and can report activity associated with its supported channels. It is not a complete accounting of every possible AI-referred journey, however. Keep an eye on the report definitions and store-specific limitations.

Create an AI Assistants channel in GA4

Google Analytics lets you create a custom channel group and define a channel such as "AI assistants" using source-matching rules. Google's official guide provides an example regex for AI assistant sources and recommends placing the AI Assistants channel above Referrals in the channel list so matching traffic is assigned as intended. See GA4 custom channel groups.

Use a rule built from domains that you actually observe in your property. An initial candidate set to inspect may include:

  • chatgpt.com and chat.openai.com
  • perplexity.ai
  • claude.ai and other provider domains observed in real reports
  • copilot.microsoft.com
  • gemini.google.com, if that exact source appears in the reports
  • Other AI assistants relevant to your audience and confirmed in the data

A starting regex might look like this, but test it against your actual source/medium values before publishing the channel group:

.*(chatgpt\.com|chat\.openai\.com|openai\.com|perplexity\.ai|claude\.ai|copilot\.microsoft\.com|gemini\.google\.com|you\.com|phind\.com|kagi\.com).*

Do not broadly classify all google.com or bing.com referrers as AI traffic. Those domains also send ordinary search traffic. If a platform's AI experience uses the same referrer as its standard search experience, GA4 may not provide enough information to separate the two reliably. Use Shopify's channel report or a more specific observed source when available, and document any ambiguity.

Likewise, do not assume the candidate list is complete. Review source domains periodically, for example quarterly, and update the rules as providers and traffic patterns change.

Examine source, medium, and landing page

In GA4 acquisition reports, use source/medium and landing-page dimensions to see which product URLs start sessions from known AI referrers. Keep an explicit segment for observed AI-assistant sessions rather than blending them into Organic Search. This lets you compare the known subset with other channels without implying that all AI influence has been captured.

Use server and CDN logs carefully

Server or CDN logs can help identify inbound requests, status codes, request paths, and a visible Referer header. They can be particularly useful when browser analytics are blocked or not loaded. But server logs do not recreate a person's full browser journey, and crawler requests should remain in a separate dataset.

If using Cloudflare, its AI Crawl Control can report AI crawler request activity. Treat these metrics as crawler activity, not shopping sessions. Where possible, keep separate fields for verified bot requests, unverified user-agent matches, human sessions, and known referrals.

Track 2: Landing pages and product discovery

The second layer asks which pages receive observable AI-referred visits and whether they align with products surfaced in controlled AI tests.

Rank landing pages by observed AI referrals

For the observed AI-assistant segment, review:

  • Landing-page sessions
  • Product or collection URL
  • Engagement and next page viewed, where measured reliably
  • Add-to-cart and checkout activity, if tracked
  • Orders and revenue, if connected to the commerce data

This helps identify which URLs are receiving measurable visits from known AI sources. It does not reveal every product an AI assistant has recommended: users may click another link, copy a URL, visit later, or never click at all.

Cross-check three different evidence sets

Compare three sets of URLs:

  1. AI-referred landing pages: product pages and collections with observable visits from known AI referrers.
  2. Search and organic landing pages: the same URLs' Google Search Console performance over the same period.
  3. Prompt-probe citations: URLs cited in a repeatable set of AI shopping questions.

Some overlap is useful, but a lack of overlap does not automatically mean the probe methodology is broken. A prompt test observes outputs under a test condition; analytics observes clicks; search reporting measures a different channel. A page can be cited without receiving a click, and a shopper can arrive at a page that was not cited in your small probe sample.

Record dates, markets, and product sets when comparing them. Avoid treating correlation between citations and traffic as proof that a citation caused a sale.

Test product information changes, not just traffic changes

If you change a product title, attributes, description, or variant mapping, create a simple change log:

  • Product and URL
  • Exact change
  • Date implemented
  • Reason for the change
  • Expected observable effect
  • How the effect will be measured

This helps you connect optimization work to measurable outcomes without claiming that every later traffic change was caused by the edit.

Track 3: Conversion and sales

The third layer evaluates whether observed AI traffic is associated with meaningful business outcomes.

Track outcomes that matter

Where the source and sample size support it, compare AI-referred sessions with Organic Search, Direct, and other referral sessions using:

  • Orders and revenue
  • Online-store conversion rate
  • Average order value
  • New-customer versus returning-customer mix, if reliably available
  • Refunds or cancellations, where relevant and consistently recorded
  • Landing-page and product-level performance

Do not compare channels without checking attribution definitions, date ranges, geography, currency, and bot filtering. Shopify and GA4 can count sessions and attribute conversions differently. Shopify also updated its session measurement in September 2026, so changes in Shopify session and conversion metrics around that rollout may partly reflect measurement definitions rather than a sudden shift in shopper behavior. See Shopify's session measurement update.

Keep one consistent attribution view

For a simple initial report, choose a primary view for comparing channels and keep it consistent across periods. For example, you might report sessions and orders attributed to observed AI sources, then separately report Shopify Agentic channel performance. Explain the exact definitions instead of combining values into one grand total.

If you join analytics records to an ecommerce order database, validate the identifiers, consent requirements, deduplication logic, and retention rules. A GA4 client ID is not universally available or appropriate for every order record, and a naive join can create false attribution.

Do not infer causality from small numbers

If a store has three AI-attributed orders in a month, that may be an important early signal and can justify a controlled growth experiment. It is not enough to estimate stable conversion rates or claim that an optimization caused the orders.

Useful tests include:

  • Before-and-after comparison with seasonality and other changes documented
  • Comparable product groups where only one group receives a defined information change
  • Repeated prompts before and after an update, with the same prompt set and test settings
  • Comparison of multiple time windows rather than a single week

Small samples can support learning about feasibility and direction. They cannot support precise estimates of lift without more observations.

What to measure and what not to claim

Observable signal What it can tell you What it cannot prove alone
AI crawler requests A known crawler requested a URL A shopper visited or bought the product
AI referrer session A visit arrived with a recognizable source All AI-influenced visits were captured
Prompt-probe inclusion A product appeared in the sampled answer All shoppers will see the product
Citation of a product URL The answer cited that URL under the test condition A user clicked or trusted it
AI-attributed order An order was attributed by that reporting method The AI channel caused incremental demand
Direct traffic increases More sessions were classified as Direct The difference is AI traffic

A change in Direct traffic can be useful as an investigation signal, especially if known offline and direct sources are stable, but it is not a statistically defensible AI-traffic estimator. Preserve it as an unresolved category rather than reclassifying it without evidence.

A practical measurement workflow

  1. Record current Shopify Agentic channel sessions, orders, and sales where reporting is available.
  2. Configure a GA4 AI Assistants channel using specific, observed sources.
  3. Separate human referral sessions from crawler requests in logs or CDN analytics.
  4. Create a landing-page report for observed AI sources.
  5. Record product information changes and controlled prompt probes in a simple change log.
  6. Compare conversion and sales with consistent definitions and date ranges.
  7. Document unobserved or unattributed traffic instead of guessing its source.

The goal is a reliable lower-bound view of known AI referral activity plus a separate view of channel-reported commerce performance. These datasets may overlap, but they should not be added together unless you have verified that they do not double-count the same orders.

Sources and documentation

Continue exploring

Continue with the guide or research topic most relevant to this article.