WebmasterID logoWebmasterID
Data quality

AMP analytics gaps

Accelerated Mobile Pages restrict JavaScript and require the amp-analytics component instead of standard tags. Because AMP pages are frequently served from a cache (e.g. a Google AMP cache) on a different origin, the client identifier and referrer differ from the canonical page, so the same user can look like two users and a session can split when they move from AMP to canonical. This page explains the gaps and the linking that mitigates them.

Verified against primary sources

Why AMP tracking differs

AMP forbids author JavaScript, so analytics run through the amp-analytics component with a declarative config rather than a normal tag. AMP documents are also commonly served from a cache on a separate domain for speed, which means the analytics client sees a different origin than your canonical site.

Identity, referrers, and session splits

Two consequences follow from the cache origin. First, the client/visitor identifier set on the cache origin is not the same one used on your canonical domain, so a user who reads an AMP page and then clicks through can be counted twice. Second, the referrer for the canonical hit may show the AMP cache rather than the true source, producing self-referral-like noise.

AMP provides a Client ID API and analytics linking specifically so the AMP and canonical identifiers can be reconciled; without it, AMP-to-canonical journeys fragment into separate users and sessions.

How it appears in analytics and logs

Inflated users or self-referrals on AMP traffic usually reflect cache-origin and client-id differences, not real new visitors; AMP Client ID linking is the documented mitigation.

Diagnostic use case

Explain why AMP traffic shows inflated user counts or odd referrers, and why AMP-to-canonical journeys appear as separate sessions.

What WebmasterID can help detect

WebmasterID records page_view events first-party on whichever origin serves the page, so you can see AMP and canonical traffic distinctly and judge how much arrives via cache.

Common mistakes

Privacy and accuracy notes

AMP client identifiers are governed by the AMP framework's privacy model; do not attempt cross-site stitching beyond documented linking. This page is educational, not legal advice.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.