Back to blog
AEO

How to measure sales from recognized AI referrals in GA4

Start with a verifiable rule for recognizing visits, then examine purchases and attributed revenue. GA4 and Semly observe different things. Missing source information does not justify labeling a visit as AI.

How to measure and report sales with AI

Updated on 20 October 2026.

Define the measurement boundary

Measure recognized referrals from AI services and recorded actions associated with them. This does not include everyone who spoke to a model before buying. A brand mention in an answer does not itself establish a website visit.

Semly observes brands and sources in answers to monitored questions. GA4 describes collected sessions and events. Combining these views does not identify every private customer conversation or establish a Semly revenue-attribution feature.

Build a recognition rule

Review actual session source/medium values in Traffic acquisition. Keep an explicit list of verified sources and the evidence connecting each to a service. Do not classify every URL containing a provider's name as a referral from its chat application.

In Explorations, create a session segment with exact conditions for those verified sources, or use an equivalent report filter. Consistent UTM parameters can identify campaigns whose links you control. They cannot reconstruct missing sources for all organic AI answers.

Test exclusion as well as inclusion

Before relying on the report, make a controlled visit through the relevant link and another from a different channel. Check collection under your consent setup and inspect the resulting source values. Never fire an AI-entry event unconditionally on every page load.

The table is a proposed acceptance plan, not a claim that tests have been performed. Without reliable source evidence, keep the visit unclassified. Direct alone does not identify an AI service.

Control caseExpected classification
Verified AI-service sourceRecognized under the documented rule
Different channelDo not classify as AI
No reliable sourceUnknown, without automatic AI assignment

Separate sessions, purchases and attribution

For the session segment, examine sessions, landing pages, recorded purchases and purchase revenue. Verify purchase events, transaction IDs, values and currency, including duplicate-purchase prevention. Define a separate key event for leads rather than calling them revenue.

Acquisition and attribution reports use different scopes. Record the model, lookback window, dates and dimensions. GA4 documents data-driven attribution and supported last-click models. Time decay has been unavailable since November 2023. A different model does not recover unobserved AI conversations.

Report without overstating causality

Describe purchases or revenue assigned under a named rule and model. Do not call this all revenue generated by AI. Recognition depends on source availability, consent, devices and implementation.

Before comparing periods, check stable classification, collection, campaigns and offers. Correlation between a content change and sales does not establish incremental impact. Missing purchases alone establish neither zero influence nor an incorrect metric.

Prepare a usable handover

Record accepted sources, session definition, positive and negative checks, event definitions and report scope. Mark unknowns explicitly. Keep account results and customer identifiers private.

Use the separate Direct guide for disappearing referrals. Use the knowledge-base procedure when comparing monitoring observations with analytics. Avoid redefining the same metrics inconsistently across reports.

Copyable GA4 report template

This template records recognized sessions and registered purchases. It does not connect to an account, recover lost sources or reveal every customer AI conversation. Copy the columns into a spreadsheet or use them as a report specification.

In GA4, open Traffic acquisition and inspect session source/medium. Define exact values verified through a controlled visit. Record the rule version, then create a session segment in Explorations or a suitable report filter. Do not classify visits using the word AI or the Direct category alone.

Use one date range and metrics compatible with the selected report. Template keys do not replace GA4 field names: purchases means recorded purchases and purchase_revenue means purchase revenue. Do not replace it with total revenue that includes other income sources.

date,session_source,session_medium,landing_page,recognition_rule_version,recognition_status,sessions,purchases,purchase_revenue,currency,control_status,notes
,,,,,,,,,,,

Recognition rules and acceptance record

Enter only verified source and medium values. For each rule record evidence, review date and positive and negative checks. Without reliable source information, keep the visit unresolved. Do not place user identifiers or URLs containing personal data in the CSV.

Control caseExpected outcome
Verified sourceIncluded in the recognized group
Other channelExcluded from the AI group
Missing sourceRemains unresolved
case_name,verified_source,verified_medium,rule_version,expected_classification,observed_classification,checked_at,reviewer,control_status
positive,,,,,,,,
negative,,,,,,,,
unknown,,,,,,,,

Before sharing, check currency, metric scope, duplicate purchases and filters. Label the report as recognized visits, not all AI-generated revenue. Blank check fields require a test; they are not a passing result.

Related guidance

ChatGPT traffic dropped in GA4. Did the visits move to Direct?

How to measure AI brand visibility: metrics, data quality and decisions

Sources and scope

GA4: Attribution

GA4: Direct

Semly: AI monitoring

Check whether AI can find your business

Get a free audit

Check for free

Agency reporting and acceptance record

Google Analytics: Traffic acquisition

Share article
LinkedInXFacebook

Find out if AI ChatGPTGeminiClaudeGoogle AI OverviewsGoogle AI Mode can see you

Enter your website address to get your AI visibility report.