Quick Answer
GCLID (Google Click Identifier) is a unique tracking parameter that Google Ads automatically appends to your destination URLs when someone clicks your ad. It connects the ad click to subsequent actions on your website — such as purchases, add-to-carts, and signups — enabling Google to attribute conversions back to the specific campaign, ad group, ad, and keyword that drove them.
What Is GCLID?
GCLID stands for Google Click Identifier. It is a unique string of characters that Google Ads automatically appends to your ad's destination URL every time someone clicks on your ad. A typical GCLID parameter looks like this: ?gclid=EAIaIQobChMI2sTy5... and can be up to 100 characters long. Each click generates a completely unique GCLID, meaning no two ad clicks share the same identifier.
The GCLID system is part of Google's auto-tagging feature, which is enabled by default in all Google Ads accounts. When auto-tagging is active, Google appends the gclid parameter to your URLs without you needing to do anything manually. This parameter is then stored in a browser cookie (_gcl_aw) and used to connect the original ad click to any conversion events that happen later on your site.
For Shopify merchants running Google Ads, GCLID is the foundational mechanism that allows Google to understand which of your ads are driving sales. Without it, your Google Ads account would record conversions but would not be able to tell you which campaign, ad group, keyword, or even ad creative was responsible for each sale.
Why Does GCLID Matter for Shopify Stores?
GCLID is critical for Shopify stores because it is the primary link between your ad spend and your revenue. When a customer clicks your Google Ad, lands on your Shopify store, browses products, and eventually makes a purchase, GCLID is what connects that purchase back to the exact ad click. Without functioning GCLID tracking, Google Ads cannot properly optimize your campaigns because it lacks the conversion signal data it needs.
For Shopify merchants specifically, GCLID data feeds directly into Smart Bidding algorithms. When Google's machine learning knows which keywords, audiences, and ad creatives are driving purchases, it can automatically adjust your bids to maximize return on ad spend. If GCLID data is missing or incomplete, Smart Bidding operates on partial information, which typically leads to higher costs per acquisition and lower overall ROAS.
GCLID also powers critical reporting features in your Google Ads account. It enables keyword-level conversion data, search term reporting tied to actual purchases, ad creative performance comparisons, and audience segment analysis. Without accurate GCLID attribution, your reports show conversions as "unattributed" or tied to "(not set)" keywords, making it impossible to make informed optimization decisions.
Get GCLID tracking right automatically
ScaleUp configures click attribution with 1-click setup — no manual GCLID handling required.
Install Free on ShopifyRated 5.0 on Shopify App Store
How Does GCLID Work?
The GCLID process begins when a user clicks your Google Ad. Google's ad server generates a unique identifier and appends it to the destination URL as a query parameter. When the user's browser loads your Shopify store, the Google Ads tag (gtag.js) or Google Tag Manager reads this parameter from the URL and stores it in a first-party cookie called _gcl_aw on your domain. This cookie has a default lifetime of 90 days, matching your conversion window.
When the user later completes a purchase on your Shopify store and the conversion tag fires, the tag reads the _gcl_aw cookie and sends the stored GCLID back to Google along with the conversion data (such as the order value and transaction ID). Google then matches this GCLID to the original click record in its database, attributing the conversion to the correct campaign, ad group, keyword, and ad creative.
On Shopify, this process has an additional complexity: the checkout typically runs on a different domain (checkout.shopify.com). When the customer navigates from your store (yourstore.com) to Shopify's checkout, the GCLID cookie may not transfer because browsers restrict cross-domain cookie access. This is the single most common reason Shopify merchants lose GCLID data and see incomplete conversion attribution in their Google Ads accounts.
Common GCLID Issues
Shopify merchants frequently encounter GCLID-related problems that degrade their conversion tracking accuracy. The most prevalent issue is GCLID not passing through Shopify's checkout flow, which results in conversions being recorded but not attributed to the correct ads or keywords. This manifests as conversions showing "(not set)" in your keyword reports or an unexpectedly high percentage of unattributed conversions.
Another common problem is URL parameter stripping by Shopify themes, apps, or redirect rules. Some Shopify themes use JavaScript navigation that rewrites URLs without preserving query parameters. Similarly, certain quick-checkout or buy-now apps bypass the normal navigation flow and strip the GCLID parameter in the process. Safari's Intelligent Tracking Prevention (ITP) also limits the _gcl_aw cookie to 7 days when set via JavaScript, meaning customers who return after a week lose their GCLID attribution entirely.
GCLID not passing through checkout
The cross-domain transition from your store to checkout.shopify.com drops the _gcl_aw cookie. Conversions appear in Google Ads but show "(not set)" for keywords and ads. Use a Web Pixel-based tracking app or configure Enhanced Conversions as a fallback.
URL parameters stripped during navigation
Theme JavaScript, redirect apps, or URL shorteners remove the gclid query parameter from URLs as the customer browses your store. Test by appending ?gclid=test_123 to your URL and navigating through your site to see if it persists.
Safari ITP cookie expiration
Safari limits JavaScript-set cookies to 7 days. Customers who click your ad on Safari and return after 7 days will not have their conversion attributed. Enable Enhanced Conversions to recover attribution via hashed email matching.

Written by Jamie Scott
Founder & CEO, ScaleUp
The ScaleUp team consists of e-commerce specialists and Google Ads experts with years of experience helping Shopify merchants optimize their conversion tracking and improve ROAS.
Google Ads & Shopify conversion tracking experts
Have questions about this article? Check our FAQ or contact us.
Ready to fix your tracking?
Get accurate Google Ads conversion tracking on Shopify in under 5 minutes.