Attribution

UTM parameters for Google Ads: fixing Shopify attribution

Google Ads clicks without UTM tags show up as organic or direct in Shopify. Where to set a final URL suffix, which parameters to use and what breaks.

·5 min read·By the ROASaurus team

Key takeaways
  • Google Ads auto-tagging adds a gclid that Google's own tools read, but Shopify and most other tools need UTM tags to see the source and campaign.
  • Set one final URL suffix at account level with utm_source, utm_medium and ValueTrack ids, and a campaign name per campaign through a custom parameter.
  • Without tags, paid clicks are lumped in with organic search or direct traffic, so campaign reports go empty while the orders are still there.
  • Keep auto-tagging on, keep tags lower case and consistent, and recheck after new campaign types, account changes or a theme or app that adds redirects.

To fix Google Ads attribution on Shopify, add UTM parameters to every Google Ads click with a final URL suffix in your account settings: utm_source=google, utm_medium=cpc, the campaign name, and Google's ValueTrack ids for the campaign, ad group and ad. Google Ads does not add UTM tags by itself. Its auto-tagging adds a gclid that Google Analytics and Google Ads understand, but Shopify's reports and most other tools do not, so they file paid clicks under organic search or direct.

Why Google Ads traffic ends up in the wrong channel

When someone clicks your ad, your store receives a visit from google.com with whatever parameters were on the link. Without UTM tags, a tool that does not read the gclid sees only that referrer. That leads to three familiar symptoms:

  • Paid clicks counted as organic search. An ad click and a search result both arrive from google.com.
  • Paid clicks counted as direct. When the referrer is lost, for example in some apps or after a redirect, the visit has no source at all.
  • Empty campaign reports. Orders and revenue are recorded, but no campaign gets credit, so Google Ads looks weak in your store's reports while it looks fine in Google Ads itself.

The click happened and the order happened. What is missing is the label on the visit. That is why an attribution discussion about Google Ads should start with the tracking template, not the model.

Which parameters are usually missing

ParameterWhat it saysExample value
utm_sourceThe platformgoogle
utm_mediumThe kind of trafficcpc
utm_campaignThe campaign by namespring-sale-search
utm_id / campaignidThe campaign by id, which never changes when you rename it{campaignid}
adgroupidThe ad group{adgroupid}
creativeThe ad{creative}
utm_termThe keyword that matched (search campaigns){keyword}
Values in braces are ValueTrack parameters: Google Ads fills them in at click time.

For Shopping and Performance Max ads, the {product_id} ValueTrack parameter can also tell you which product was clicked.

Where UTM tags belong in Google Ads

Do not edit landing page URLs ad by ad. Google Ads has tracking settings at several levels, and the lower level overrides the higher one:

LevelUse it for
Account: final URL suffixThe parameters every click gets: source, medium and ValueTrack ids
Campaign: custom parameterThe campaign name, as {_campaign}, which the account suffix uses
Ad group, ad or keywordExceptions only; a suffix here replaces the one above it for those clicks
Set the framework once at account level, fill in names per campaign.

Both levels are needed: the account suffix sets the structure, and the campaign's custom parameter supplies its name. Use the ids as well, because a name can be changed later, while ids stay the same.

Step by step: a correct Google Ads UTM setup

  1. Keep auto-tagging on

    In Google Ads, open Admin › Account settings › Auto-tagging and leave it on. The gclid is what conversion tracking and GA4 import rely on. UTM tags are added on top of it, not instead.

  2. Set the account-level final URL suffix

    Under Admin › Account settings › Tracking, add the suffix below to Final URL suffix and save.

  3. Give each campaign its name

    In each campaign's Settings › Campaign URL options, add a custom parameter named _campaign with a short, lower-case name such as spring-sale-search.

  4. Test a click

    Use the Test button next to the tracking settings, or click an ad preview, and check that the landing URL carries all parameters and still loads the right page.

  5. Check your reports after a day

    Google Ads visits should now appear as google / cpc with campaign names in Shopify's marketing reports and in your attribution tool.

Final URL suffix (account level)
utm_source=google&utm_medium=cpc&utm_campaign={_campaign}&utm_id={campaignid}&campaignid={campaignid}&adgroupid={adgroupid}&creative={creative}&utm_term={keyword}

Common mistakes that break Google Ads attribution

  • Auto-tagging switched off to "make room" for UTMs. Conversion tracking and GA4 imports then lose their click id.
  • A suffix at a lower level that silently replaces the account suffix for some campaigns or ads.
  • Hard-coded UTMs in final URLs that clash with the suffix and give one click two sources.
  • Inconsistent spelling: Google, google and adwords count as three sources in most reports. Pick lower case and stick to it.
  • Redirects that drop parameters: a language redirect, a link shortener or an app that rewrites the landing page can strip everything after the question mark.
  • Only names, no ids: renaming a campaign mid-month splits its results in two.

When to recheck the setup

  • After creating new campaign types, such as Performance Max or Demand Gen.
  • After moving to a new Google Ads account or a manager account.
  • After a theme change, a new app that touches landing pages, or a new domain or market.
  • When Google Ads conversions rise while your store reports show fewer Google orders, or organic search suddenly grows.

How ROASaurus reads Google Ads clicks

ROASaurus recognises a Google Ads click by its click id (gclid, gbraid or wbraid) even without UTM tags, so the channel is right from the first visit. It also reads the campaign id Google adds to auto-tagged clicks (gad_campaignid), and the campaignid, adgroupid and creative parameters from the suffix above, so orders join the spend synced from your Google Ads account per campaign, ad group and ad. UTM tags add the names and keywords, and they keep other tools such as Shopify's reports right as well.

?gclid=…&gad_campaignid=2214…Click without UTM tags: channel Google Ads, campaign known by id
&utm_campaign=spring-sale-search&adgroupid=1553…&creative=6871…Click with the suffix: name, ad group and ad as well
order #1187 · Google Ads › spring-sale-searchThe order is credited per campaign and joined to its spend
Example clicks in a fictional store.
The ROASaurus Mac app showing Attribution: orders, revenue, ad spend and ROAS per channel under the chosen model. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Attribution: orders, revenue, ad spend and ROAS per channel under the chosen model. Fictional demo store, simulated data.
Marketing › Channels & campaigns › Attribution in the public demo (ROASaurus Demo Store, a fictional store): revenue and ROAS per channel and campaign under any of twelve models.

In Marketing › Channels & campaigns › Attribution you can then compare Google Ads campaigns with other channels under one of twelve attribution models, and each order's journey page shows the clicks before the purchase.

Next step

Sources

  1. Google Ads Help: About tracking in Google Ads (final URL suffix)
  2. Google Ads Help: Set up tracking with ValueTrack parameters
  3. Google Ads Help: About auto-tagging
  4. Google Analytics Help: URL builders and campaign parameters

In ROASaurus

Keep reading

AttributionGoogle Ads attribution models for Shopify storesGoogle Ads now offers data-driven and last click attribution. How each splits credit, which fits a Shopify store, how to switch, and what both cannot see.AttributionHow to analyze the purchase journey behind Google AdsAnalyze the purchase journey behind Google Ads: days to conversion, path metrics and conversion paths, a worked example, and what Google cannot see.AttributionHow to choose marketing attribution softwareWhat marketing attribution software does, the kinds of models and tools, how tools compare on their own pages, and a checklist to choose one.

FAQ

Questions, answered

More answers in the FAQ and the help center.

Does Google Ads add UTM parameters automatically?

No. Auto-tagging adds a gclid, which Google Analytics and Google Ads read. UTM tags have to be added yourself, best with a final URL suffix at account level.

Should I turn off auto-tagging if I use UTM parameters?

No. Keep auto-tagging on so conversion tracking and GA4 imports keep working, and add UTM tags through the final URL suffix next to the gclid.

Why does Google Ads traffic show as organic search in Shopify?

Without UTM tags, Shopify sees a visit from google.com and cannot tell an ad click from a search result. Add utm_source=google and utm_medium=cpc to every ad click.

Where do I set the final URL suffix in Google Ads?

In Admin › Account settings › Tracking for the whole account. Campaign, ad group or ad level suffixes override it, so only use those for exceptions.

How do I add the campaign name to Google Ads UTM tags?

Add a custom parameter such as _campaign to each campaign's URL options, and use {_campaign} as the utm_campaign value in the account suffix. Add {campaignid} too, so renames do not split results.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.