Sub topic 3
Referrers and UTM parameters as attribution signals
Assume you know the basics of GA4 reports, referrers, and UTM parameters. This chapter focuses on how these signals help identify visits from AI assistants. It does not cover channel-group configuration or BigQuery analysis yet.
The two signals GA4 can use
A referrer is the page URL that a browser reports as the page that sent a visitor to your site. When someone clicks a link in an AI assistant, the browser may send a value such as:
https://chatgpt.com/GA4 can use this value to derive a source. Depending on the browser, assistant, privacy settings, and link-handling behavior, the value may be missing or reduced to only a hostname.
UTM parameters are query-string values added to a destination URL. They explicitly describe campaign attribution. For example:
https://example.com/guide?utm_source=chatgpt.com&utm_medium=ai_assistant&utm_campaign=product_researchWhen GA4 receives this URL, it can read utm_source, utm_medium, and utm_campaign from the landing page URL. These values usually provide a clearer signal than a referrer because the link creator controls them.
How to interpret referrers
A referrer identifies the previous page, not necessarily the assistant that generated the recommendation. A hostname such as chatgpt.com is a useful source indicator. However, several variations can occur:
| Observed value | Likely interpretation | Confidence |
|---|---|---|
| `chatgpt.com` | A click may have come from ChatGPT | Medium to high |
| `gemini.google.com` | A click may have come from Gemini | Medium to high |
| Empty or absent referrer | The browser did not provide a usable referrer | Low |
| An intermediate redirect host | A redirect or tracking service handled the click | Low to medium |
Do not treat every matching hostname as proof of an AI-generated recommendation. A user could have copied the URL, opened it from a bookmark, or clicked a link in another context. Use the referrer as an attribution signal, then compare it with landing pages, timestamps, and conversion behavior.
Referrer policies also affect what reaches your site. A policy may send only the origin, such as https://chatgpt.com, instead of the full assistant conversation URL. Some applications open links in a new context or remove the referrer entirely.
How to interpret UTM parameters
UTM values are intentional labels. The most useful fields for this use case are:
utm_source: the platform or assistant, such aschatgpt.comutm_medium: the traffic type, such asai_assistantutm_campaign: the initiative or link contextutm_content: an optional label for comparing links
GA4 uses these values for campaign attribution. A consistent naming scheme matters more than a particular spelling. For example, choose either ai_assistant or ai-referral as the medium and use it consistently.
UTM parameters can be more reliable than referrers when you control the links. They cannot identify links created independently by an assistant, users, or third parties. Adding UTM parameters to every URL you publish also creates a risk: inconsistent values can split one source across many rows in reports.
Combining the signals
Treat referrers and UTMs as complementary:
- Check the session source and medium in GA4.
- Inspect raw landing-page URLs for UTM values.
- Compare the values with page-referrer data where available.
- Record unknown, missing, and conflicting cases instead of forcing them into an AI category.
A UTM value and referrer can disagree. For example, a link might contain utm_source=newsletter but be clicked from an AI assistant. Decide which signal your reporting policy prioritizes, and document that decision. Campaign parameters usually describe the intended campaign, while the referrer describes the browser's reported previous page.
Exercise
A visit has utm_source=chatgpt.com and an empty referrer. Should you exclude it from AI-assistant reporting?
Show answer
No. The explicit UTM value is still an attribution signal. Include it, but keep a field or segment that distinguishes UTM-identified visits from referrer-identified visits.