gclid and auto-tagging dimension
A gclid (Google Click Identifier) is a token Google Ads appends to landing-page URLs when auto-tagging is on. It lets GA4 resolve campaign, ad group, creative, and match-type dimensions without UTMs. This page explains how auto-tagging works, how it differs from manual tagging, and what happens when the gclid is stripped.
What this means
Auto-tagging is a Google Ads setting that automatically appends a gclid parameter to every ad-click landing URL. GA4 reads that gclid and, with a linked account, resolves it into rich Google Ads dimensions — campaign, ad group, creative, keyword, match type, and network.
Without auto-tagging you would have to tag every ad URL with UTMs by hand to get even coarse campaign data, and you would never get ad-group or match-type granularity.
- Auto-tagging appends a gclid to ad landing URLs
- GA4 + account linking expands it into paid dimensions
- It unlocks granularity UTMs cannot reach
Auto-tagging vs manual UTM tagging
The gclid and UTM parameters are two different attribution mechanisms. Auto-tagging (gclid) is Google-specific and resolves server-side via linking; manual UTMs are universal, human-readable, and work for any source. Using both on a Google Ads URL can cause conflicts unless settings are aligned.
The common failure mode is a stripped gclid: redirects, link shorteners, aggressive URL cleaners, or server rules that drop query strings remove the token, so the click arrives looking like organic or direct traffic. Preserving query strings end-to-end is what keeps paid attribution intact.
- gclid is Google-specific; UTMs are universal
- Redirects and URL cleaners can strip the gclid
- A stripped gclid looks like organic/direct traffic
How it appears in analytics and logs
A present gclid means auto-tagging tied the click to Google Ads detail. Missing Google Ads dimensions usually trace back to a stripped gclid or disabled auto-tagging, not to missing traffic.
Diagnostic use case
Understand why Google Ads dimensions populate (or do not) by checking whether auto-tagging is enabled and the gclid survives the landing URL.
What WebmasterID can help detect
WebmasterID reads landing-URL parameters first-party, so it can tell when a gclid is present and when redirects or filters have stripped paid-click context.
Common mistakes
- Assuming paid dimensions fill in without auto-tagging or linking.
- Letting redirects or URL cleaners strip the gclid.
- Mixing conflicting manual UTMs with auto-tagging on the same URL.
Privacy and accuracy notes
A gclid identifies a click, not a named person. It is still a unique token in the URL, so treat it as sensitive in logs and avoid exposing it. This is educational, not legal advice.
Related pages
- Campaign ID dimension: the machine key for campaigns
Campaign ID is the dimension fed by the utm_id parameter (and by ad-platform IDs on auto-tagged traffic). Unlike the human-readable campaign name, the ID is a stable machine key meant to survive renames and to join analytics with ad-platform cost data. GA4 uses it to reconcile manual tags with imported campaign metadata, which makes it the durable join key for cross-system reporting.
- Ad group dimension
An ad group groups related ads and keywords inside a campaign. In GA4 the Google Ads ad group dimension is populated when accounts are linked and auto-tagging is on; for non-Google networks you approximate it with UTM tags. This page explains the derivation and the difference between a true ad group and a UTM stand-in.
- Query string dimension
The query string is the part of a URL after the '?': key-value parameters such as ?q=shoes&page=2. Analytics tools can surface it as a dimension, but it is double-edged — useful for understanding filters and search, dangerous for cardinality and privacy. This page explains how it is derived and how to handle it safely.
- Campaign links
Keep click identifiers intact through redirects.
Sources and verification notes
- Google Ads Help — About auto-taggingDefines the gclid and how auto-tagging appends it.
- Google Analytics Help — [GA4] Link Google Ads and AnalyticsExplains how linking resolves gclid into GA4 dimensions.
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.