What is GCLID?
GCLID (Google Click Identifier) is a unique tracking parameter that Google automatically adds to your URLs when someone clicks on your ad. It looks like this:
This ID is the key to Google Ads attribution. It connects the ad click to everything that happens afterward — page views, add-to-carts, and purchases. Without it, Google can't tell which ad, keyword, or campaign drove the conversion.
Why GCLID Matters for Your Ads
https://yourstore.com/products/widget?gclid=EAIaIQobChMI...Why GCLID Gets Dropped on Shopify
GCLID tracking on Shopify is notoriously fragile. The parameter can get lost at multiple points in the customer journey. Here's what happens:
The Result: "Unattributed" Conversions
When GCLID is lost, Google records the conversion but can't attribute it to a specific ad, keyword, or campaign. You'll see conversions in your account, but the data is useless for optimization.
Ad Click → Landing Page
GCLID arrives in URL
Browse Products
GCLID may drop from URL during navigation
Checkout (checkout.shopify.com)
Cross-domain transition — GCLID often lost here
Thank You Page
Conversion fires without GCLID = broken attribution
How to Diagnose the Problem
Before fixing anything, confirm that GCLID is actually the issue. Here's how to test:
Check Google Ads Attribution Reports
Go to Reports → Predefined → Conversions → Conversion action. If you see conversions but the associated keywords/ads show as "(not set)", GCLID isn't passing.
Manual Test with Tag Assistant
Install Google Tag Assistant Chrome extension, then:
Check Browser DevTools
Open DevTools (F12) → Application → Cookies. Look for a _gcl_aw cookie. This is where GCLID should be stored. If it's missing or not persisting to checkout, that's your problem.
- Conversions showing in Google Ads
- But keywords show "(not set)" or "Other"
- No _gcl_aw cookie on checkout pages
- GCLID disappears from URL during navigation
If you checked 2+ boxes, you have a GCLID tracking problem.
Common Causes & Fixes
Cause 1: Cross-Domain Tracking Not Configured
Shopify checkout runs on checkout.shopify.com, a different domain than your store. Without proper cross-domain tracking, cookies (including GCLID) don't transfer.
Fix: Configure cross-domain tracking in Google Tag Manager or use a tracking app that handles this automatically. See the Cross-Domain Tracking section below.
Cause 2: Shopify's Sandbox Restrictions
Shopify's checkout runs in a sandboxed environment that restricts cookie access. Traditional GTM setups can't read cookies from your main domain.
Fix: Store GCLID in a first-party cookie on landing, then pass it via URL parameters or use Shopify's Web Pixel API which has proper access to customer data.
Cause 3: Ad Blockers & Privacy Tools
Ad blockers often strip tracking parameters like gclid, fbclid, and UTM parameters from URLs.
Fix: You can't prevent ad blockers, but server-side tracking reduces the impact. Enhanced Conversions also help recover lost attribution data.
Cause 4: URL Redirects Stripping Parameters
Some apps, redirects, or URL shorteners strip query parameters. If your ad links go through a redirect before hitting your store, GCLID may be lost.
Fix: Audit your redirect chain. Ensure all redirects preserve query parameters. Link directly to your Shopify store when possible.
Cause 5: Theme or App Conflicts
Some Shopify themes or apps interfere with URL parameters during navigation. JavaScript that rewrites URLs or handles "Buy Now" buttons may strip tracking parameters.
Fix: Test with a default Shopify theme to isolate the issue. Check any quick-checkout or one-click purchase apps that might bypass normal navigation.
Fix GCLID issues automatically
ScaleUp's Web Pixel integration ensures click IDs pass through Shopify checkout reliably.
Install Free on ShopifyRated 5.0 on Shopify App Store
Cross-Domain Tracking Explained
The most common GCLID issue on Shopify is the cross-domain problem. Here's what you need to understand:
GTM Cross-Domain Limitations
Traditional GTM cross-domain tracking doesn't work well with Shopify's checkout due to sandbox restrictions. Even with linker configured, the _gl parameter often doesn't pass correctly into Shopify's iframe-based checkout.
When customers move from your store to checkout, they cross domains. Cookies set on yourstore.com are not accessible on checkout.shopify.com by default.
Option 1: Use a Custom Checkout Domain (Shopify Plus)
Point your checkout to checkout.yourstore.com. Same root domain = cookies persist. Requires Shopify Plus.
Option 2: Pass GCLID via URL Parameters
Capture GCLID on landing, store in localStorage, then append to checkout links. Complex to implement correctly.
Option 3: Use Shopify Web Pixels (Recommended)
Web Pixels have access to customer data including attribution. Apps built on this API handle cross-domain automatically.
Safari & ITP Issues
Safari's Intelligent Tracking Prevention (ITP) creates additional challenges for GCLID tracking, especially on iOS devices.
- Limits third-party cookie lifetime to 24 hours
- Caps first-party cookies set via JavaScript to 7 days
- Strips tracking parameters from cross-site navigations
- Blocks localStorage access in third-party contexts
Enable Enhanced Conversions
Uses hashed customer data (email) to match conversions when cookies fail.
Use Server-Side Cookies
Cookies set via HTTP headers aren't subject to the 7-day JavaScript limit.
Rely on Google's Conversion Modeling
With Consent Mode, Google models conversions from Safari users statistically.
Understanding wbraid & gbraid
You may have noticed parameters like wbraid or gbraid in your URLs. These are Google's privacy-preserving alternatives to GCLID.
Good News
If your tracking setup handles GCLID correctly, it should also handle wbraid and gbraid. Google's tags automatically use whichever parameter is available. The key is ensuring your checkout flow preserves all tracking parameters, not just GCLID.
| Parameter | Used For | When Used |
|---|---|---|
| gclid | Standard click tracking | Most desktop/Android clicks |
| wbraid | Web-to-web conversions | iOS users who opt out of tracking |
| gbraid | App-to-web conversions | Clicks from iOS apps to websites |
The Best Solution for Shopify
After dealing with all these issues, here's the most reliable approach for Shopify stores:
ScaleUp: Attribution That Just Works
ScaleUp uses Shopify's Web Pixel API and Enhanced Conversions to maintain accurate attribution even when GCLID can't be passed traditionally. No GTM configuration needed.
Install Free on ShopifyUse a Tracking App Built on Shopify's Web Pixel API
Apps built on Shopify's native Web Pixel API don't have the cross-domain issues that plague GTM setups. They have proper access to customer and order data at checkout.
- No cross-domain cookie issues
- Works with Checkout Extensibility
- Enhanced Conversions built-in
- Handles Safari/ITP automatically
Frequently Asked Questions
Does GCLID affect my Quality Score?
Not directly, but indirectly yes. Without GCLID, Google can't properly attribute conversions to keywords, which means your Smart Bidding won't optimize correctly. Poor optimization leads to lower relevance signals over time.
Can I store GCLID in Shopify order notes?
Yes, some merchants capture GCLID and store it in order metafields. This is useful for offline conversion import but doesn't fix real-time tracking. You'll need to manually upload conversions or use an automation tool.
Will Enhanced Conversions replace GCLID?
Enhanced Conversions supplement GCLID, they don't replace it. When GCLID is available, it's still the primary attribution method. Enhanced Conversions help recover attribution when GCLID fails or isn't available.
How long is GCLID valid?
GCLID is valid for up to 90 days by default (matching your conversion window). However, if the cookie expires or is cleared before then, the attribution is lost. This is why same-session conversion tracking is most reliable.
Sources
Stop Losing Attribution Data
ScaleUp's Web Pixel integration ensures accurate Google Ads attribution without the GCLID headaches. Set up in 5 minutes.
Install Free on ShopifyNo credit card required

Written by Jamie Scott
Founder & CEO, ScaleUp
Jamie has spent years debugging Google Ads tracking issues for Shopify merchants and built ScaleUp to solve these problems automatically.
Google Ads & Shopify conversion tracking experts
Have questions about this article? Check our FAQ or contact us.
Related Resources
Ready to fix your tracking?
Get accurate Google Ads conversion tracking on Shopify in under 5 minutes.