Loading your content...
Loading your content...
Step-by-step US guide to capture gclid, persist it, and map ads clicks to revenue with client-side, server-side, and offline conversion methods.
Store gclid in a first-party cookie or server session at first landing.
Attach gclid to orders or CRM records for accurate CAC and LTV reporting.
Send conversions server-side or upload offline to reduce data loss.
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).
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:
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.
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.
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).
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.
There are three common ways to attribute conversions with gclid in US contexts:
| 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.
Contact us today and we will get back to you shortly
Below is a typical implementation for Shopify/WooCommerce and B2B sites that want reliable gclid-based attribution.
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.
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.
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.
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.
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.
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.

Marion is an award-winning content creator with over a decade of experience crafting high-impact B2B and B2C content strategies. Her content journey began in the mid-00s as a journalist and copywriter, focusing on pop culture, fashion, and business for various online and print publications. As the Content Lead at Prebo Digital, Marion has driven significant increases in engagement, page views, and conversions by employing a creative approach that spans ideation, strategy and execution in organic and paid content.
Disclaimer: This content is for educational purposes only. Product availability, pricing, and specifications are subject to change. Always verify current details on the retailer's website before making a purchase. We may earn affiliate commissions from qualifying purchases.
I've been working with Prebo Digital for the past 4 years across multiple brands and businesses. The team is highly engaging and really a partner - th...
A digital agency that's ahead of the curve! Their ability to partner with customers, focus on tangible growth and speed of service and communication i...
Digitally well rounded team(SEO, Content, Google Ads, Bing Ads, Paid Social Ads- Meta, TikTok LinkedIn & more), hands-on team, very strategic and resu...
- Very skilled and knowledgeable in the digital industry and you understand the importance of budgets. Start-ups do not have hundreds of thousands to ...
In the 4 months since we joined hands with Prebo our leads quantity and quality has increased with much more direct impact on our target market. The t...
Shout out to Leesha @Prebo Digital for great diligence and care handling our Google Ads account. Other agencies take your money and do nothing until y...
Prebo will take your business to the next level. Extremely smart people, great service. Always go above and beyond.
Verified customerGet answers to common questions about Analytics And Tracking