Skip to content
RU
← All articles

Track ChatGPT and Perplexity Referral Traffic in GA4

Quick answer

Track ChatGPT and Perplexity traffic in GA4 with a Session source filter for the domains you observe. Check for ChatGPT’s utm_source=chatgpt.com on landing URLs and include observed Perplexity referrers. Track sessions, landing pages, and key events within the same scope. Keep citation tracking separate from the traffic report.

A chat window beside a web analytics report
Compare the actual click with the recorded source.

Start with the sources GA4 already records

Open Reports → Acquisition → Traffic acquisition and inspect the unfiltered Session source values for your site. Use Traffic acquisition to answer where sessions come from. A returning customer who first found you through Google and then clicked through from Perplexity can have a different first-user source. Google’s scope guidance explains the user, session, and event dimensions.

Pick a period that contains a known link or landing page. Confirm that the reporting property covers the hostname that serves that page and that its measurement tag runs there. A property that measures your marketing pages can miss visits that arrive directly on a documentation subdomain. If the sessions later cross to an app hostname, make sure your setup observes the key event you want to compare.

Step 1. Filter Session source for ChatGPT and Perplexity

Apply this regular expression to Session source with a matches-regex filter in an exploration or a report that supports the dimension. It matches whole source values. If Session source / medium is the only visible dimension, switch to the source dimension. The pattern is designed for values such as perplexity.ai, without the trailing / referral.

^(chatgpt[.]com|chat[.]openai[.]com|(?:www[.])?perplexity[.]ai)$

Keep chat.openai.com only if it is useful in your historical data. Before adding additional hosts, look at the values in your own export. The filter includes www.perplexity.ai and perplexity.ai as candidate labels. chatgpt.com.example.org does not match. Using a loose contains-filter for chatgpt can mix unrelated values and your own campaign names into the same row.

Leave Session medium visible during verification. Limiting the report to the Referral channel can omit explicitly tagged links whose medium or channel differs. OpenAI’s publisher FAQ documents utm_source=chatgpt.com on referral URLs from ChatGPT search results. That tells you which value to check. Confirm what your property actually recorded before saving a filter. Google’s campaign and source documentation describes how attribution works when referral data is present or missing.

Two redirect paths across connected screens
Check whether the tag survives on the final URL.

Step 2. Verify a landing URL before trusting the report

Follow a real link and inspect the navigation in browser developer tools with the network log preserved. Observe the first request, all redirects, and the URL that loaded the analytics tag. Suppose a docs link lands at /docs/v1?utm_source=chatgpt.com and the redirect sends the browser to /docs/quickstart with no query string. The final page can receive a visit without the UTM parameter. Inspect the referrer and the event sent by the tag to see which signals remain.

Run a separate control click with a label reserved for QA, preferably in a test property. This shows whether the navigation retains a query parameter and whether the tag starts on the destination page. Testing the redirect does not require an account-wide attribution change. If you test a real ChatGPT or Perplexity link, compare a web click and an app click independently. An app may open the destination with fewer referral signals, so record the result for that path.

Review the consent state, event collection, and attribution report as separate stages. Seeing the URL in the browser confirms navigation. Seeing a request from the analytics tag confirms collection was attempted. Seeing a session attributed to a source confirms the recorded reporting result. A discrepancy between stages tells you where to investigate. Allow for normal processing time when comparing a fresh control visit to a standard report.

Step 3. Compare landing pages and key events

From Traffic acquisition, add Landing page + query string to see where matched sessions started, as described in Google’s landing page report guide. Compare sessions, engaged sessions, and the key event you care about in the same table. For a docs site, a page that draws many visits and rarely leads to a signup can still answer a support question. Pick the outcome that fits the page before interpreting the ranking.

Group query variants under a landing path if you are summarizing a page rather than investigating individual tags. Retain source splits for ChatGPT and Perplexity so one cannot hide changes in the other. With small numbers, report counts alongside any percentage. A move from one signup to two can look dramatic as a rate change, even when the denominator shifted enough to explain the result.

If you use Yandex Metrica on the same site, compare Sources → Websites with the UTM tags report. Its Websites report is based on the referrer, while a link can still carry a UTM source when no referrer is passed. Keep the two views separate unless you can combine both signals in a single visit-level segment. The counts from the two products may differ as a result of tag coverage, collection rules, and visit attribution.

Save the attribution checks with your report

Keep a short log of the routes and source values you verified. Give renamed pages extra attention. Use a redirect chain check to see where the server sends the browser. Then compare the request and final response with HTTP Compare if headers differ between environments.

Document coverage by hostname and device where it affects the result. If a teammate sees crawler requests for the same URL, share the AI Readiness check alongside the traffic report. The crawl and click measurements can move independently. A server-side request to a URL does not establish that a reader reached it from a citation.

Check missing or inconsistent traffic

A traffic report can show attributable clicks. If you want to observe when your site appears in answers, sample the answers for a defined query set and measure link appearances separately. AI Visibility is intended for that view. Server requests from crawlers provide another independent measurement.

SymptomCheck
The pattern returns no rowsUse Session source and check observed values before applying the regex.
One hostname gets all the apparent trafficInspect landing page coverage and the source breakdown by hostname.
The landing URL lost its UTMInspect each redirect and the URL visible to the first analytics tag.
The answer shows a link, but no measured visitsRun a controlled click and check whether the tag can observe the landing page.
Unattributed traffic increasedLeave those visits unclassified unless another attributable signal is present.

How we made this

We ran the source expression against seven sample labels in Python. Four matched the domain list. The lookalike domains chatgpt.com.example.org and notperplexity.ai were rejected, along with (direct). We checked the reporting steps against the official documentation. The test covers matching logic on controlled input. It does not measure real sessions or certify how a specific property classifies a click.

Frequently asked questions

Can I use First user source for the same report?

Use it if the question is where newly acquired users originally came from. For sessions started by a click from ChatGPT or Perplexity, use Session source.

Can I recover clicks without a UTM or referrer?

A session with neither signal cannot be attributed to a specific assistant from those fields. Keep it in the unclassified group and use controlled clicks to understand which paths preserve attribution.

Do GPTBot requests show up as ChatGPT referrals?

Crawl activity is measured in request logs and has a different purpose from click attribution. See the GPTBot verification guide if you need to identify crawler requests.

Sources

Check your website right now

Audit your site's SEO →
More articles: SEO
SEO
robots.txt Guide: Syntax, Rules, Testing and Ready-Made Files
16.03.2026 · 1 191 views
SEO
Sitemap XML: Structure, Limits, Generation and Validation
16.03.2026 · 1 130 views
SEO
Open Graph Tags: Control Link Previews in Telegram and X
21.07.2026 · 954 views
SEO
Website Migration Checklist: Avoid SEO and Downtime Pitfalls
16.03.2026 · 840 views