How to Track Conversions Using gclid in Google Ads
A practical, US-focused guide to capturing gclid, mapping clicks to purchases, and improving attribution accuracy for revenue-driven advertisers.

Image via 123RF
In This Article
Capture & Persist
Map to Revenue
Use Server-side
Why gclid matters for conversion tracking
The gclid (Google Click Identifier) is a query parameter appended to landing page URLs when Google Ads auto-tagging is enabled. In the United States eCommerce and B2B contexts, capturing gclid is a foundational step for clean attribution: it links an ad click to a downstream conversion event, whether that conversion happens in-browser, server-side, or offline. Accurate gclid capture reduces reliance on platform-reported conversions and helps teams measure true revenue impact and customer acquisition cost (CAC).
Common tracking flows (TOF → MOF → BOF)
Use gclid capture across the marketing funnel to preserve click-level context from top-of-funnel (TOF) interest to bottom-of-funnel (BOF) purchase. Example funnel:
- TOF: Paid search click with gclid → landing page session
- MOF: Lead capture or add-to-cart; persist gclid in cookie or user profile
- BOF: Purchase or offline sale; attach stored gclid to the transaction record
For Shopify and WooCommerce stores, persisting the gclid as a first-party cookie or within the checkout session is common. For B2B sales that close offline, save the gclid alongside CRM records so you can upload conversions later with accurate click timestamps.
Step 1 - Ensure auto-tagging is enabled
Auto-tagging adds the gclid to ad landing URLs automatically. Check that auto-tagging is enabled in Google Ads because manual UTM-only approaches lose click-level identifiers. After enabling, verify landing pages show a gclid parameter on ad clicks.
Step 2 - Capture and persist the gclid
Capture the gclid on the landing page using JavaScript and store it in a 90-day first-party cookie, localStorage, or in the server session. If users progress to checkout, add the gclid to the order payload so it is stored with the purchase record.
Practical example: A US Shopify store with average order value (AOV) of $120 stores gclid in a cookie named gclid_store. When checkout completes, the order record includes that cookie value. This lets downstream reporting tie revenue to the original Google Ads click (note: $ values are estimates for illustrative purposes).
Where Prebo Digital’s approach fits
A technical-first tracking setup pairs gclid persistence with server-side measurement (GTM Server or backend uploads) to reduce ad-blocker and browser-loss issues. For more on our service scope and retainers, see Services Overview and how we structure strategy → build → test → scale work.
Consideration: If you use third-party checkout flows, confirm the gclid persists through redirects or use server-side capture to prevent loss of the identifier.
Conversion tracking methods that use gclid
There are three common ways to attribute conversions with gclid in US contexts:
- Client-side conversion tags (gtag.js or Google Tag Manager)
- Server-side measurement (GTM Server container or backend endpoints)
- Offline/CRMs conversion uploads tied to stored gclid values
| Method | When to use | Key trade-off |
|---|---|---|
| Client-side tag (gtag/GTM) | Simple web conversions, fast setup | Vulnerable to ad blockers and browser restrictions |
| Server-side (GTM Server) | Improved attribution, cleans data loss | Higher engineering effort and infra cost |
| Offline uploads | B2B or phone order attribution | Requires consistent gclid persistence and timestamp accuracy |
For implementation patterns and examples on the homepage engineering approach, see our overview at Prebo Digital.
Step-by-step implementation: capture → store → attribute
Below is a typical implementation for Shopify/WooCommerce and B2B sites that want reliable gclid-based attribution.
Implementation checklist
- Enable Google Ads auto-tagging in account settings.
- Add client-side script to capture location.search and extract gclid.
- Persist gclid in a first-party cookie (90 days) and include it in checkout payloads.
- Record gclid in order/CRM records and map to transaction timestamp and revenue ($ values).
- Upload offline conversions or send server-side conversion hits to Google Ads with the stored gclid.
Example: upload offline conversions (US B2B scenario)
A B2B sales team captures gclid at lead capture and stores it in HubSpot. When a deal closes for $8,500, the CRM export includes gclid and close date. The team uploads that record to Google Ads using the offline conversions upload feature, matching the gclid to the click timestamp to attribute revenue. This method ties real revenue to paid search while keeping CAC and LTV calculations accurate.
Server-side tips to improve accuracy
Use a GTM Server container or a backend endpoint to send conversion events to Google Ads. Server-side events bypass many client-side blockers and improve data consistency. When sending server-side conversions, include the stored gclid and the conversion timestamp formatted per Google Ads requirements.
Common pitfalls and US privacy considerations
Do not rely solely on platform-reported conversions. Browser restrictions, cookie deletion, and ad blockers create gaps. In the US, consider state privacy laws like CCPA when storing identifiers and personal data - ensure your cookie and privacy notices disclose tracking practices and opt-out options.
When to combine gclid with enhanced conversions and server-side tracking
Enhanced conversions (hashed first-party data) can complement gclid by improving matching rates when direct click-level linkage is lost. The recommended pattern for high-accuracy attribution is to capture gclid, persist it server-side, and send both gclid and hashed customer data where appropriate. This layered approach balances attribution clarity with privacy-safe practices.
Quick troubleshooting checklist
- No gclid on landing page? Verify auto-tagging is on and ad final URLs are not stripped by intermediate redirects.
- gclid present but not stored? Confirm cookie domain and that cookies are set before redirects to external checkout.
- Conversions not matching? Check timestamp accuracy and timezone alignment when uploading offline conversions.
For implementation patterns across analytics, tracking, and engineering, see our agency background at About Prebo Digital. If your team needs a growth-focused tracking audit, learn how to scope technical work and retainers in our Services Overview and view contact options at Contact.
Summary: measuring revenue, not just clicks
Tracking conversions using gclid is a practical, technical step toward revenue-focused measurement. Capture gclid, persist it reliably, and map it to transactions (client-side, server-side, or offline uploads). Combined with server-side tracking and privacy-aware matching, gclid-based attribution helps US advertisers prioritize profitability and accurate CAC calculations over platform vanity metrics.

