Sub topic 6
Google Ads auto-tagging and account linking
This chapter assumes you know the source, medium and campaign dimensions, how UTM parameters work, and the default channels. It covers how Google Ads traffic gets its source, medium and campaign values without UTM tags, and what breaks when the pieces are missing.
Why Google Ads traffic is tagged differently
Email, social posts and partner links are tagged by hand with UTM parameters. You write those values into the URL, so you control them.
Google Ads works differently. Each ad click can have a unique identifier added to the landing page URL automatically. This is called auto-tagging. The identifier does not say "this was a Google Ads click" in words. It is a lookup key. GA4 uses the key to retrieve the click's details from Google Ads, but only if the two products are connected.
Two things must be in place for complete data:
- Auto-tagging is enabled in the Google Ads account, so each click carries an identifier.
- Account linking connects the Google Ads account to the GA4 property, so GA4 can resolve that identifier into campaign details.
What auto-tagging adds to the URL
When auto-tagging is on, Google Ads appends a gclid (Google Click Identifier) parameter to the final URL:
https://www.example.com/spring-sale?gclid=Cj0KCQiA_example_click_idThe ad's destination in Google Ads has no UTM parameters. The visitor still arrives with one extra parameter, and the gclid value is different for every click.
Google Ads can also use two other identifiers:
| Parameter | Purpose |
|---|---|
| `gclid` | The standard click identifier for web clicks. |
| `gbraid` | Used for some app-to-web and iOS clicks, where Apple's privacy rules limit what can be passed. |
| `wbraid` | Used for some web-to-app clicks, also under iOS privacy limits. |
All three are handled by Google's systems. You do not edit or interpret them.
What GA4 does with the identifier
The flow has three steps. The visitor lands with a click ID. GA4 collects the page view, and the session records the click ID. If the accounts are linked, GA4 matches the ID to the click in Google Ads and fills in the campaign data.
Because that diagram form is not valid as written, here it is in the required form:
With the link in place, GA4 sets the session's traffic dimensions to google as source and cpc as medium. It also fills in the campaign name from Google Ads. It can then use the campaign type to choose the channel.
How campaign type decides the channel
Google Ads campaign types do not all map to Paid Search. GA4 uses the type of the campaign that produced the click:
| Google Ads campaign type | Typical default channel |
|---|---|
| Search | Paid Search |
| Shopping | Paid Shopping |
| Display, Demand Gen (display placements) | Display |
| Video (YouTube) | Paid Video |
| Performance Max, Smart campaigns | Cross-network |
The exact mapping is Google's, and it changes over time. Check the current "Default channel group" help page before you rely on a specific assignment.
This is why two campaigns that both show google / cpc can sit in different channels. The medium alone is not the whole rule. Chapter 4 described rule matching on source, medium and campaign. Auto-tagged Google Ads traffic adds campaign type as an input.
Linking the accounts
You link the accounts from the GA4 side:
- In GA4, open Admin and find Product links, then choose Google Ads links.
- Choose Link and select the Google Ads account.
- Review the options. The usual ones are personalized advertising and auto-tagging.
- Choose the data streams, then submit.
Two permission requirements often block this step:
- You need the Editor role (or higher) on the GA4 property.
- You need Admin access on the Google Ads account.
If you have only one of these, the link option fails or the account is not listed. Ask the owner of the other product to grant access or to create the link.
The link works in one property-to-account pair at a time. One GA4 property can link to several Google Ads accounts, and one Ads account can link to several properties. Check which pairs exist after a reorganization or an agency change.
Once linked, the Google Ads data appears in the acquisition and advertising reports. These include dimensions such as Google Ads campaign and metrics such as cost and clicks. These come from Google Ads, not from GA4 collection.
What happens without the link
The result of missing pieces depends on which piece is missing:
| Auto-tagging | Link | Typical result |
|---|---|---|
| On | Yes | Full campaign details, cost data, correct campaign-type channel. |
| On | No | Click ID is present but cannot be resolved. Expect missing or generic campaign details, no cost data, and possible misclassification. |
| Off | Yes | No click ID, so GA4 has nothing to resolve. Traffic is classified from whatever the URL carries. |
| Off | No | Same as above, with no Ads data in GA4. |
The second row is the most common problem. The behaviour for unresolved click IDs can vary. Do not assume it. Compare a few known paid sessions in your own property against the Google Ads click count.
If the third or fourth row applies, add UTM tags to the Google Ads final URL or a tracking template. Without them, paid clicks can show up as Organic Search or Referral, because google is a search source and the medium is not marked paid.
Auto-tagging and UTM tags together
Sometimes a URL has both a gclid and UTM parameters. In that case GA4 normally treats the auto-tagging data as authoritative and ignores the UTM values for that click. The GA4 admin settings include an option that allows manual tagging to override auto-tagging. Find it in your current interface before you change it. Turn it on only when you have a specific reason. An example is a campaign whose UTM values are deliberately different from the Google Ads names.
Mixing both is not an error, but it can confuse reports. If some people tag Google Ads URLs by hand with utm_medium=cpc and others rely on auto-tagging, campaign names will not match across the same campaign. Pick one approach per account and document it.
A simple click-ID checker
The following script is a simplified helper. It reads a landing URL and reports which tagging method it carries. It does not reproduce GA4's logic. It only tells you what is present in the query string.
from urllib.parse import urlparse, parse_qs
CLICK_IDS = ("gclid", "gbraid", "wbraid")
def describe_tagging(url):
params = parse_qs(urlparse(url).query)
found_ids = [name for name in CLICK_IDS if name in params]
utm = {k: v[0] for k, v in params.items() if k.startswith("utm_")}
if found_ids and utm:
return f"Auto-tagged ({', '.join(found_ids)}) plus UTM: {utm}"
if found_ids:
return f"Auto-tagged only ({', '.join(found_ids)})"
if utm:
return f"UTM only: {utm}"
return "No campaign parameters"
print(describe_tagging("https://www.example.com/spring-sale?gclid=abc123"))
print(describe_tagging("https://www.example.com/spring-sale?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale_2026"))
print(describe_tagging("https://www.example.com/spring-sale?gclid=abc123&utm_source=google&utm_medium=cpc"))
print(describe_tagging("https://www.example.com/spring-sale"))Use a check like this against the URLs your ads actually land on. Copy them from a browser after clicking a real ad, because redirects can add or remove parameters.
Failure modes
Most Google Ads misclassification traces back to one of these:
- The click ID is lost. A redirect, a URL shortener, a form that rewrites the URL, or a server rule that strips query strings can remove
gclidbefore GA4 sees it. The session then looks like Direct or like a Referral from your own redirect host. - The accounts are not linked, or the wrong stream is selected. Check the link status after any property change.
- Auto-tagging is switched off at the Google Ads account level, for example by another team.
- Consent settings limit collection. If a visitor declines analytics storage, GA4 may not record the click ID the same way. Expect gaps between Google Ads clicks and GA4 sessions. The two counts will not match exactly, because clicks and sessions are different things.
- Another platform's tags conflict. Search Ads 360, Campaign Manager 360 and Display & Video 360 have their own linking and tagging. They follow the same idea, a click ID resolved through a link. They are separate from the Google Ads link.
Summary
Auto-tagging adds a click ID to the landing URL. Account linking lets GA4 turn that ID into a campaign name, cost and a campaign type, and the campaign type feeds the channel assignment. Without both, Google Ads traffic can land in the wrong channel or lose its campaign details.
Exercise
Your Google Ads auto-tagging is on, but GA4 shows no cost data and generic campaign names for paid clicks. The gclid appears in the landing URLs. What is the most likely missing piece, and what permissions do you need to fix it?
Show answer
The Google Ads account is probably not linked to the GA4 property, so GA4 cannot resolve the gclid into campaign details or cost. To create the link you need the Editor role (or higher) on the GA4 property and Admin access on the Google Ads account.
Exercise
A Performance Max campaign and a Search campaign both show google / cpc in GA4, yet they sit in different channels. Why?
Show answer
For auto-tagged traffic, GA4 also uses the Google Ads campaign type, not only source and medium. Search maps to Paid Search, while Performance Max maps to Cross-network, so the same source and medium can produce different channels.