How to Measure AI Referral Traffic in Ecommerce
Define detectable AI referrals, find them in analytics, and report traffic separately from attributed sales when the platform cannot align visits and orders. A worked scorecard shows how to calculate and interpret the measures.

How to measure AI referral traffic in ecommerce
Set a reporting period, define which AI referrers count, and inspect those sources in your analytics platform. Then report traffic and outcomes using measures with matching attribution rules. In GA4, calculate conversion only when purchase events or orders are attributed to the same AI-sourced sessions. In Shopify, report acquisition visitors separately from last-interaction orders and sales; its visitor reports do not provide a session denominator for a session conversion rate.
How should a store identify AI-referred visits?
Count only detectable referral traffic: visits assigned to AI assistants or other AI sources by the platform’s source and channel rules. This measure does not capture every visit influenced by AI. If a customer sees a recommendation in an assistant but later arrives without a retained referrer, analytics may record the visit as direct, unassigned, or another source. Keep those visits out of the AI total unless you have a documented rule and evidence for including them.
In Google Analytics, open Reports > Acquisition > Traffic acquisition and inspect Session source / medium for the period. Check the default channel group too: an AI referrer may appear under referral rather than an AI-specific channel.
Maintain a working source list, such as chatgpt.com, gemini.google.com, perplexity.ai, and copilot.microsoft.com, plus any AI-specific medium your platform reports. Verify new values before adding them. Record the source values, channel rule, platform, reporting period, and date of any rule change. Preserve earlier definitions for historical comparisons.
In Shopify, use acquisition reporting for visitors and Total sales by referrer for sales attributed to the last interaction referrer. Acquisition reports cover the Online Store sales channel. Referral details may be missing because of Do Not Track settings, proxies or firewalls, or shortened URLs. Keep unknown sources unassigned rather than counting them as AI traffic. [1][2]
Which metrics show whether AI referrals bring customers or sales?
Keep session-based and visitor-based measures distinct. In GA4, use a session-scoped source dimension, such as Session source / medium, and a purchase or order metric attributed to those same sessions. Configure the report or exploration so both the AI sessions and purchases use that session-source dimension and the same reporting period. Do not pair a session count with a purchase metric based on first user source or another attribution basis.
Calculate session-based conversion rate = orders attributed to AI sessions ÷ AI sessions × 100. Use an order or transaction metric consistently; if the platform reports purchase events that can include more than one purchase per order, label the numerator accordingly. If your analytics platform cannot align the orders or purchases with the same source-scoped sessions, report sessions and attributed outcomes separately. Do not calculate or label a conversion rate from mismatched measures.
For Shopify, report acquisition visitors and last-interaction attributed orders and sales as separate metrics. Do not divide the last-interaction orders by acquisition visitors and call the result a session conversion rate. If you choose to show that division as an additional ratio, label both units and the attribution basis explicitly; it is not a session-based conversion measure. [1][2]
A worked AI referral scorecard
The following hypothetical example shows how to calculate a GA4 session conversion rate and keep Shopify’s measures separate for the same completed period.
| Platform and measure | Basis | Example value |
|---|---|---|
| GA4 AI-source sessions | Session source / medium; documented AI source list | 1,000 sessions |
| GA4 orders from those sessions | Same session-source rule and period | 30 orders |
| GA4 session-based conversion rate | 30 orders ÷ 1,000 sessions × 100 | 3% |
| Shopify AI-referrer visitors | Acquisition report; visitor measure | 800 visitors |
| Shopify AI-referrer orders and sales | Total sales by referrer; last interaction | 24 orders; $2,400 |
Do not compare the Shopify visitor count directly with GA4 sessions as if they were the same unit, or treat Shopify’s last-interaction orders as the numerator for the GA4 rate. If GA4 sessions rise while aligned orders stay flat, first check whether the source list or channel classification changed. Then examine the traffic mix, landing pages, and purchase path for possible explanations. The pattern signals a question to investigate; it does not prove that the additional sessions caused, or failed to cause, a sales change.
Published market findings are not forecasts for an individual store. Their populations, source definitions, and comparison bases may differ, so use your own consistently defined reports to guide measurement decisions.
How should reporting handle Shopify’s session update?
Shopify rolled out session-measurement changes from September 21 to 23, 2026. The update filters identified bot sessions from session-related reports by default and changes how sessions continuing past midnight UTC are counted. Mark the rollout as a reporting break, use post-update session data as a new baseline, and check orders, sales, and customer counts alongside sessions. Do not interpret a session shift alone as a change in demand. [3]
A practical workflow for any completed reporting period
- Set the scope. Record the period, sales channel, analytics platform, and AI-source rules.
- Inspect source values. In GA4, review Session source / medium in Traffic acquisition. In Shopify, review acquisition visitors and Total sales by referrer separately.
- Verify the source list. Check unfamiliar referrers before adding them, date rule changes, and preserve previous definitions.
- Build separate platform measures. Calculate a GA4 session conversion rate only from aligned sessions and orders. Record Shopify visitors and last-interaction orders and sales in distinct fields.
- Annotate measurement changes. Apply the Shopify September 2026 reporting break when comparing periods that cross its rollout. [3]
- Investigate movement. Compare consistent periods and definitions. When traffic and sales move differently, check classification, measurement changes, and the customer journey before drawing conclusions.
Frequently asked questions
What attribution model should a store use for purchases influenced by AI referrals?
State the model beside each result. Shopify’s Total sales by referrer report uses the last-interaction referrer, so describe its sales as last-interaction attributed rather than session-based. [1]
How should a merchant handle a missing referrer?
Leave it unassigned unless documented evidence supports another classification. Do Not Track settings, proxies or firewalls, and shortened URLs can prevent Shopify from showing referral details. [1]
Can results be compared across analytics platforms?
Compare them only after documenting each platform’s source rules, reporting scope, and units. Platform-specific source rules can affect comparisons.
References
- [3] Shopify guidance on the September 21–23, 2026 session-measurement rollout, including bot-session filtering, sessions crossing midnight UTC, and advice on interpreting session changes.
- [1] Shopify documentation for Total sales by referrer, covering last-interaction attribution and reasons referral details may be unavailable.
- [2] Shopify documentation for acquisition reports, covering visitor reporting and Online Store sales-channel scope.