Back to Learning Hub
Attribution•8 min read•February 16, 2026

Google Ads Attribution: How to Use gclid for Better Tracking

Learn how to use gclid for accurate Google Ads attribution. Enable auto-tagging, capture click IDs, and import offline conversions.

W

Wilmer

Co-founder & CEO

Google Ads Attribution: How to Use gclid for Better Tracking

Every click on your Google Ads generates a unique identifier called gclid. This Google Click Identifier is the foundation of accurate Google Ads attribution, connecting ad clicks to conversions across devices and sessions. Yet many advertisers either don't have auto-tagging enabled or fail to capture gclid properly, leaving conversions unattributed and campaigns under-optimized.


gclid is an automatic URL parameter Google Ads adds to track clicks and conversions, linking each ad click to its campaign, keyword, and creative for precise attribution. This guide shows you how to enable, capture, and leverage gclid for complete Google Ads tracking.


What is gclid?


gclid stands for Google Click Identifier. When someone clicks your Google ad, Google automatically appends a gclid parameter to your landing page URL. The URL looks like this:


yoursite.com/landing-page?gclid=CjwKCAjw_ISWBhBkEiwAdqxb9r...


This unique string contains encoded information about the click: which campaign, ad group, keyword, ad creative, and targeting triggered the click. When that visitor later converts, Google uses the gclid to attribute the conversion back to the exact ad interaction.


How gclid Attribution Works


The Auto-Tagging Process


When auto-tagging is enabled, Google Ads automatically appends gclid to your destination URLs. You don't need to modify your ads or add manual parameters. Every click receives a unique gclid without any configuration on your part.


Cookie Storage


When the user lands on your site, Google's tracking (gtag.js or Google Tag Manager) reads the gclid from the URL and stores it in a first-party cookie called _gcl_aw. This cookie persists for 90 days by default, allowing conversions to be attributed even if they happen weeks after the initial click.


Conversion Matching


When a conversion occurs (purchase, form submission, phone call), you send the conversion event to Google Ads. Google matches the gclid from the cookie to the original ad click and attributes the conversion to the correct campaign, ad group, keyword, and ad.


Enabling gclid Auto-Tagging


To turn on gclid auto-tagging, sign in to your Google Ads account, click Settings in the left navigation, select Account Settings, find Auto-tagging and check the box for "Tag the URL that people click through from my ad."


That's it. Once enabled, every ad click will automatically include a gclid parameter. No manual URL modification required.


Verifying Auto-Tagging


To confirm auto-tagging is working, click one of your ads (use the ad preview tool to avoid charges), and check that your landing page URL contains ?gclid= or &gclid= parameter. If it's missing, verify auto-tagging is enabled and that your website doesn't strip URL parameters.


gclid vs UTM Parameters


gclid and UTM parameters serve different purposes and work best when used together.


gclid is automatic and Google-specific. It enables click-level attribution within Google's ecosystem, powering conversion tracking, Smart Bidding, and audience optimization. gclid provides granular data that UTM parameters cannot match.


UTM parameters are manual and platform-agnostic. They work in any analytics tool (Google Analytics, Adobe Analytics, your CRM) and across any traffic source (Facebook, email, affiliates). UTMs provide campaign-level attribution you control.


The best practice is using both. gclid feeds Google's algorithms for optimization. UTM parameters give you visibility in your analytics and CRM systems independent of Google.


Capturing gclid for Your Systems


Method 1: Google's Global Site Tag (gtag.js)


If you're using gtag.js, gclid capture happens automatically. The tag reads the gclid from the URL and stores it in the _gcl_aw cookie. Conversions tracked through gtag.js include this gclid automatically.


Method 2: Google Tag Manager


Google Tag Manager can capture gclid and pass it to your data layer, CRM, or other systems. Create a URL variable to extract the gclid parameter, then use it in your tags or push it to your data layer for custom use.


Method 3: Server-Side Capture


For the most reliable tracking, capture gclid server-side. When a visitor lands on your site with a gclid parameter, extract it from the URL and store it in your database associated with that session or lead record.


This approach ensures you have the gclid even if JavaScript fails, cookies are blocked, or the user converts through a different path (phone call, in-store visit).


Offline Conversion Import


One of gclid's most powerful features is offline conversion import. When a lead converts offline (signs a contract, makes a purchase in-store, becomes a qualified opportunity), you can upload that conversion to Google Ads using the stored gclid.


How Offline Import Works


Capture and store the gclid when a lead first visits your site. When that lead converts offline, associate the conversion value and timing with the stored gclid. Upload the conversion data to Google Ads using Google Ads Data Manager or the Google Ads API.


Google accepts gclid-based conversions up to 90 days after the click. This covers most B2B sales cycles where weeks or months pass between initial click and final conversion.


Benefits of Offline Import


Offline conversion import lets Google's Smart Bidding optimize for actual business outcomes, not just form fills. When Google knows which clicks lead to real revenue, it can find more users like your best customers.


Enhanced Conversions for Better Matching


Enhanced Conversions supplement gclid with hashed first-party data (email, phone, address) to improve conversion matching when gclid is unavailable. This happens when cookies are blocked or cleared, users convert on a different device, or significant time passes between click and conversion.


Server-side tracking through Enhanced Conversions prevents data loss from ad blockers, cookie restrictions, and browser limitations, improving attribution accuracy.


Troubleshooting gclid Issues


gclid Not Appearing in URLs


Check that auto-tagging is enabled in Google Ads settings. Verify your final URLs don't have tracking templates that override auto-tagging. Ensure your website doesn't redirect in ways that strip query parameters.


Conversions Not Attributed


Without a properly captured gclid, conversions may show as unattributed, show up late, or get incorrectly attributed to other channels. Verify the _gcl_aw cookie is being set. Check that your conversion tracking tag fires correctly. Ensure gclid is included in conversion events.


Cross-Domain Tracking Issues


If users navigate between domains before converting, gclid can be lost. Implement cross-domain tracking in Google Tag Manager or gtag.js to preserve the gclid across domain boundaries.


Best Practices for gclid Attribution


Always Enable Auto-Tagging


There's no reason to have auto-tagging disabled. It's free, automatic, and required for accurate Google Ads conversion tracking and Smart Bidding.


Capture gclid Server-Side


Don't rely solely on client-side cookies. Store gclid in your database when leads are captured for reliable offline conversion import later.


Use Both gclid and UTMs


gclid optimizes your Google Ads. UTMs give you visibility in your broader analytics stack. Use both for complete attribution coverage.


Import Offline Conversions


If your business has offline conversion events (sales calls, contracts, in-store purchases), import them using stored gclid values. This dramatically improves Smart Bidding performance.


Arktis automatically captures gclid and connects it to your conversion data, enabling accurate Google Ads attribution across online and offline touchpoints.


Track Google Ads with Arktis →


Sources

1. Google Ads Help, "Google Click Identifier (GCLID): Definition"

2. Northbeam, "What Is GCLID? Complete Guide to Google Click Identifier"

3. Ruler Analytics, "What is GCLID Auto-tagging in Google Ads"

4. Google Ads Help, "Set Up Offline Conversions Using gclid"

5. Dinmo, "Google Ads Enhanced Conversions: 2026 Guide"

6. Salespanel, "GCLID vs UTM Parameters Guide"

7. Nimbata, "All You Need to Know About GCLID Tracking"

Frequently Asked Questions

What is gclid?

gclid stands for Google Click Identifier. It's a unique parameter that Google Ads automatically appends to your landing page URLs when someone clicks your ad. The gclid contains encoded information about the campaign, ad group, keyword, and ad that generated the click, enabling precise conversion attribution.

How do I enable gclid auto-tagging?

Sign in to Google Ads, click Settings, select Account Settings, find Auto-tagging, and check 'Tag the URL that people click through from my ad.' Once enabled, gclid will automatically be added to all ad click URLs without any manual configuration.

What is the difference between gclid and UTM parameters?

gclid is automatic and Google-specific, enabling click-level attribution within Google's ecosystem for conversion tracking and Smart Bidding. UTM parameters are manual and platform-agnostic, working in any analytics tool across any traffic source. Use both together: gclid for Google optimization, UTMs for cross-platform visibility.

How long is gclid valid for offline conversion import?

Google accepts gclid-based offline conversions up to 90 days after the original ad click. This covers most B2B sales cycles where significant time passes between initial website visit and final conversion.

Why are my Google Ads conversions not being attributed?

Common issues include: auto-tagging not enabled, website redirects stripping the gclid parameter, cookies being blocked or cleared, conversion tag not firing correctly, or the _gcl_aw cookie not being set. Verify auto-tagging is on and check that gclid appears in your landing page URLs.

What are Enhanced Conversions?

Enhanced Conversions supplement gclid with hashed first-party data (email, phone) to improve conversion matching when gclid is unavailable. This helps attribute conversions when cookies are blocked, users convert on different devices, or significant time passes between click and conversion.

Try Arktis free for 7 days

Attribution tracking, session recordings, and AI automation in one platform. Set up in 2 minutes, free for 7 days.

Start 7-day free trial

Written by

W

Wilmer

Co-founder & CEO

Wilmer leads product strategy at Arktis, focusing on privacy-first analytics and attribution tracking for e-commerce brands.