Instructions
GCLID Tag: What It Is and How It Works

GCLID (Google Click Identifier) is a unique click identifier that Google Ads automatically appends to URLs when a user clicks on an ad. It passes click data to GA4 and enables accurate conversion tracking without manual UTM tagging.
What is GCLID and Why Does It Matter
Every time a user clicks a Google Ads ad, Google automatically adds a gclid parameter to the destination URL — a long encrypted string, for example:
https://example.com/product?gclid=CjwKCAiA...GCLID stands for Google Click Identifier. It is not just a numeric ID — it is an encoded packet of metadata containing information about:
- Which ad was shown (campaign, ad group, keyword).
- The device type and network used (Search / Display / YouTube).
- The exact timestamp of the click.
- The ad position at the moment of impression.
This information is shared between Google Ads and Google Analytics 4, allowing the system to automatically match clicks with conversions — without any manual UTM configuration.
How GCLID Works: The Auto-Tagging Mechanism
GCLID operates through auto-tagging — a standard Google Ads feature that is enabled by default. Here is the step-by-step flow:
- A user sees a Google Ads ad and clicks on it.
- Google generates a unique gclid string for that click and appends it to the final URL.
- The browser navigates to the landing page with the gclid parameter in the URL.
- Google Analytics 4 reads the gclid from the URL and stores it in the
_gcl_awcookie for 90 days. - When the user completes a conversion (purchase, form fill), GA4 sends the gclid back to Google Ads.
- Google Ads matches the gclid to the original click and attributes the conversion to the correct campaign.

Important: auto-tagging only works when Google Ads and GA4 are linked. If the accounts are not connected, the gclid still arrives on the site, but GA4 will not have access to the full Google Ads data (campaign, keyword, etc.).
Where GCLID Is Stored and How Long It Lasts
After landing on your site, the gclid is stored in the browser as a cookie named _gcl_aw. The storage duration is 90 days. This means:
- If a user clicks an ad but does not convert immediately, GA4 remembers the gclid for 90 days.
- If the user returns and makes a purchase within that window, the conversion will be attributed to the correct campaign.
- If the user clears cookies or uses incognito mode, the gclid will be lost and the conversion may not be attributed.
In addition to the _gcl_aw cookie, GA4 can also pass gclid via server-side tracking using the Measurement Protocol — enabling conversion tracking even when cookies are blocked.
GCLID vs UTM Parameters: What Is the Difference
Advertisers often ask: if GCLID exists, why use UTM tags? In practice, these two mechanisms complement each other but serve different purposes.

GCLID (auto-tagging) — an automatic mechanism between Google Ads and GA4:
- Set up once — no need to add it manually to every ad.
- Passes richer data: keyword, match type, placement, ad position, device — data that UTM parameters cannot carry.
- Required for importing conversions back into Google Ads.
- No risk of typos or inconsistent naming conventions.
UTM parameters — manual tagging for any channel:
- Work for any traffic source: email, social media, banners, partners — not just Google Ads.
- Visible in GA4 as
utm_source,utm_medium,utm_campaign— easy to filter in reports. - Useful when you want custom campaign names or need to track multiple ad platforms in one place.
You can use both simultaneously — Google Ads supports using gclid and UTM parameters together. In this case, gclid handles conversion attribution in Google Ads, while UTM handles traffic segmentation in GA4.
How to Verify GCLID Is Working in GA4
To confirm that auto-tagging is working correctly and gclid is being passed to GA4, follow these steps:
- Go to GA4 → Reports → Acquisition → Traffic Acquisition.
- In the primary dimension, select «Session default channel group» or «Session source / medium».
- Look for the row google / cpc — if it appears, gclid is being passed correctly.
- Click on google / cpc and check the campaign breakdown — if you see actual campaign names (not «(not set)»), the GA4 and Google Ads link is working properly.
You can also verify gclid transmission via Google Tag Manager: visit the site through a test ad (or manually add ?gclid=test to the URL) and open GTM Preview mode — you should see the _gcl_aw cookie in the browser.
Common GCLID Issues and How to Fix Them

Issue 1: GCLID is in the URL but Google Ads data is missing in GA4
Cause: Google Ads and GA4 are not linked.
Fix: In Google Ads, go to Tools → Linked Accounts → Google Analytics (GA4) and Firebase, find your GA4 property, and click «Link».
Issue 2: Auto-tagging is disabled
Cause: Auto-tagging was turned off in Google Ads account settings.
Fix: Go to Google Ads → Account Settings → Auto-tagging and ensure the checkbox «Tag the URL that people click through from my ad» is checked.
Issue 3: GCLID is dropped during redirects
Cause: A 301/302 redirect does not forward URL parameters, including gclid.
Fix: Configure the redirect to preserve the query string. For example, in nginx add $is_args$args to the redirect destination URL.
Issue 4: GCLID conflicts with Cookie Consent
Cause: If Consent Mode is not configured, the browser may block the _gcl_aw cookie before the user accepts the Cookie Policy.
Fix: Implement Google Consent Mode v2 — this allows conversion modeling even without full user consent (enhanced conversions).
GCLID and Privacy: What Changed in 2024–2025
In response to browser privacy changes (third-party cookie deprecation) and tightening regulations (GDPR, ePrivacy), Google has updated its approach to gclid:
- Enhanced Conversions — a new technology that complements gclid: instead of relying solely on cookies, it uses hashed first-party data (email, phone number) submitted during a conversion to attribute it correctly. This works even when cookies are blocked.
- Consent Mode v2 — if a user declines analytics cookies, Google Ads uses modelled conversions based on aggregate data rather than individual gclid tracking.
- GCLID encryption strengthened — in 2024, Google added additional protection to prevent third-party services from reading gclid values, leaving access only to official Google APIs.
For maximum conversion tracking accuracy in 2025–2026, we recommend using gclid (auto-tagging) + Enhanced Conversions + Consent Mode v2 together.
How to Capture GCLID in Your CRM or Call Tracking
If you want to see which Google Ads campaign brought a specific customer in your CRM or call tracking system, you can save the gclid alongside the lead:
- Add a JavaScript snippet to your page that reads the
gclidvalue from the URL or the_gcl_awcookie. - Store the gclid in a hidden form field or pass it to your CRM via API.
- Later, when the lead becomes a customer, send the gclid back to Google Ads via offline conversion import.
- Google Ads automatically matches the gclid to the original click and records the conversion with the correct value and timestamp.
// Example: read gclid from URL and store in cookie
function getGclid() {
const urlParams = new URLSearchParams(window.location.search);
const gclid = urlParams.get('gclid');
if (gclid) {
document.cookie = 'gclid=' + gclid + '; max-age=7776000; path=/';
}
return gclid || getCookieValue('gclid');
}
function getCookieValue(name) {
const match = document.cookie.match(new RegExp('(^| )' + name + '=([^;]+)'));
return match ? match[2] : null;
}This approach is especially valuable for European B2B companies and businesses with long sales cycles, where conversion happens offline via a call or meeting.
FAQ: Common Questions About GCLID
Does GCLID affect website speed?
No. The gclid parameter is added to the URL as a text string and does not load any additional scripts. GA4 reads this parameter during its normal initialisation and writes a cookie — this takes milliseconds and has no impact on LCP, FID, or CLS.
Can competitors see my GCLID?
The gclid is visible in the browser URL bar and server logs — a competitor could technically see it. However, the gclid contains only encrypted information about your click and cannot be decoded without access to your Google Ads account.
Can I disable GCLID and use only UTM tags?
Technically yes, by disabling auto-tagging in Google Ads account settings. However, we do not recommend this: without gclid, you lose the ability to import conversions back into Google Ads and lose keyword-level and match-type granularity in GA4.
GCLID and GDPR: is there a compliance issue?
The gclid itself is not personal data — it is a technical click identifier. However, if you store gclid alongside a customer’s personal data in your CRM, that combination falls under GDPR. We recommend implementing Consent Mode v2 to ensure the gclid cookie is only written after explicit user consent.
Why is the GCLID value so long and unreadable?
GCLID is a Base64-encoded encrypted string. It encodes all click information (campaign, keyword, network, position, timestamp). Its length — typically 20 to 100+ characters — ensures the uniqueness and security of each identifier.
Summary: When You Need GCLID
GCLID is the foundation of accurate Google Ads tracking. It is essential when you want to:
- See campaign → ad group → keyword → match type granularity in GA4.
- Accurately attribute conversions and measure ROAS in Google Ads.
- Use Smart Bidding (Target ROAS, Target CPA) — these strategies learn from conversion data linked via gclid.
- Import offline conversions from your CRM back into Google Ads.
- Measure ad performance accurately even in a cookie-restricted environment.
If you have questions about conversion tracking setup or Google Ads integration with GA4, contact Spilno Agency. We help European businesses build complete analytics infrastructure.


