# UTM attribution: what UTM tags can credit, what they can't, and how GA4 decides

> UTM attribution explained: UTMs label visits, your analytics' model assigns credit. How GA4 does it, where cross-device and off-site sales break it, and fixes.

Source: https://hoplytic.com/blog/utm-attribution · Updated 2026-11-29 · Hoplytic Guides

Video version (69 seconds): [https://hoplytic.com/video/utm-attribution.mp4](https://hoplytic.com/video/utm-attribution.mp4)

## Video transcript

Which campaign drove this sale? UTM tags alone can't answer that.

UTM tags only label each visit. Your analytics tool's attribution model decides which visit gets credit, so two tools can disagree on the same tags.

In GA4, user acquisition credits the source a user first arrived from. Traffic acquisition uses last non-direct click. Key event reports follow the model set in Admin.

It breaks across devices, unless people sign in. It breaks when a redirect drops the query string. And when a visit is older than the lookback window. For affiliates, the sale happens on the merchant's site, so your analytics never sees it.

Store the landing page's UTM values with your click ID. Pass the click ID to the network in its sub-ID. When the sale comes back with that ID, the commission is credited to that campaign.

Hoplytic stores every parameter on a tracking link, UTMs included, with the click. Reports can group commission by UTM source or campaign. It doesn't build a multi-touch model.

The full guide is right below. Hoplytic: ad tracking made simple.

## Key points

- UTM tags don't attribute anything themselves: they label a visit, and your analytics tool's attribution rules decide which labeled visit gets credit.
- In GA4, session reports use last non-direct click, while key-event reports follow the model chosen in Admin, data-driven by default.
- UTM attribution breaks across devices unless the tool can recognize the same person, and it can't see sales that happen on another site.
- For affiliate sales, carry the UTM values into the network's sub-ID at the outbound click, so the commission comes back with them.

"Which campaign drove this sale?" is the question UTM tags are supposed to answer. They often do, but UTM attribution has rules you don't see and gaps you can't close with more tags. Knowing both keeps you from cutting a campaign that works or funding one that doesn't.

**Short answer:** UTM tags don't attribute anything on their own. They label each visit with a source, medium and campaign. Your analytics tool then applies an attribution model to decide which labeled visit gets credit for a conversion. In GA4, session reports use last non-direct click, and key-event reports use the model set in Admin. UTMs can't follow a person across devices without sign-in, and they can't see sales on other sites.

## Labels versus credit

Think of two separate steps:

- **Labeling.** A visitor clicks `?utm_source=newsletter&utm_medium=email&utm_campaign=2026-w48`. Your analytics records that this visit came from that campaign. UTMs do this part, and only this part.

- **Crediting.** Three days later the same person buys. They may have visited four times from four sources in between. Which one gets the sale? That's decided by the attribution model in your analytics, not by the tags.

Change the model and the same UTM data tells a different story. That's why two tools reading identical UTM tags can disagree on which campaign "won".

## How GA4 does UTM attribution

GA4 applies different rules in different reports. This trips up almost everyone:

| Where you look | What gets credit |
| --- | --- |
| User acquisition | The source a user first arrived from (First user source, campaign and so on) |
| Traffic acquisition | How each session started, using last non-direct click: a direct return visit inherits the user's previous campaign |
| Advertising reports, key events by event-scoped source | The reporting attribution model in Admin: data-driven by default, or paid and organic last click |

The model and the lookback windows are set in Admin, under attribution settings. By Google's documentation, the default lookback is 30 days for acquisition key events (like first visit) and 90 days for other key events, with shorter options available. Changes apply going forward. Google removed first click, linear, time decay and position-based models from GA4 in 2023; the trade-offs between the remaining ideas are covered in [first click vs last click](https://hoplytic.com/blog/first-click-vs-last-click).

### A worked example

A shopper's path to a $120 order:

- Monday: clicks an Instagram story, `utm_source=instagram&utm_medium=social&utm_campaign=winter-boots`.

- Wednesday: clicks the newsletter, `utm_source=newsletter&utm_medium=email&utm_campaign=2026-w48`.

- Friday: types your address and buys.

- **User acquisition** credits Instagram, because that's how the user first arrived.

- **Traffic acquisition** credits the Friday session to the newsletter, because a direct visit inherits the last non-direct source.

- **Last click (paid and organic)** for the purchase key event: also the newsletter.

- **Data-driven** may split the credit between Instagram and the newsletter, in proportions GA4 estimates from your property's data.

None of these is wrong. They answer different questions: who found the customer, and who closed the sale.

## Where UTM attribution breaks

### Across devices

UTMs live in one link, clicked on one device. If the shopper clicks your Instagram story on a phone and buys on a laptop, those are two unconnected visitors unless the tool can tell they're the same person. GA4 can join them if you send a `user_id` when people sign in, and Google offers other identity features with their own conditions. Without sign-in, expect the laptop sale to show as direct, or to inherit whatever that laptop last came from.

### When the tag gets lost

Redirects that drop the query string, declined consent, and tagged internal links all remove or overwrite labels before attribution even starts. The common causes and fixes are in [UTM codes in Google Analytics](https://hoplytic.com/blog/utm-codes-google-analytics).

### Outside the lookback window

A visit older than the lookback window can't receive credit, however many UTM tags it had. Long buying cycles undercount the campaigns that start them. The same idea in affiliate programs, where the window decides who gets paid, is in [attribution windows](https://hoplytic.com/blog/attribution-windows).

### Sales on someone else's site

This is the big one for publishers and affiliates. If your reader clicks out to a merchant and buys there, the purchase is recorded on the merchant's site and reported to the affiliate network. Your analytics never sees it, and the network doesn't send UTM values back. Your UTM attribution ends at the outbound click.

## Getting UTM attribution for affiliate sales

To credit a commission to the campaign that brought the reader in, the campaign has to travel with the click to the network and come back with the sale. That's what sub-IDs do:

`Landing: https://yoursite.example/boot-review?utm_source=newsletter&utm_campaign=2026-w48
Outbound: https://www.awin1.com/cread.php?awinmid=1234&awinaffid=5678&clickref=c7f3a9e1
Sale back: commission $9.60, clickref=c7f3a9e1`
Click `c7f3a9e1` was stored with `utm_source=newsletter` and `utm_campaign=2026-w48`, so the $9.60 is credited to that campaign. The network still decides whether you get paid, usually on its own last-click rule. Your data adds which of your campaigns started it. The difference between the two kinds of parameter is in [UTM vs sub-ID](https://hoplytic.com/blog/utm-vs-sub-id).

Two limits remain. You only see the source of the landing visit that led to the click, not every earlier touch. And a reader who leaves, then buys a week later by going straight to the merchant, is outside your tracking entirely.

## Making UTM attribution more trustworthy

- **Tag every external link you control**, consistently, so fewer visits fall into direct or Unassigned by default.

- **Compare two views on purpose.** Look at first-user source next to last-click key events. A channel that's large in the first and small in the second is starting journeys others finish.

- **Don't compare tools on raw totals.** GA4, an ad platform and an affiliate network each use different models and windows. Disagreement is normal.

- **Test before scaling.** If attribution says a channel works, pause it for a while and see whether total sales move. That's crude, but it's not subject to any model.

## Doing this in Hoplytic

Hoplytic matches each sale to the click whose ID the network reported, so earnings follow the network's own decision. Every parameter on a tracking link, UTMs included, is stored with the click. With the optional [site script](https://hoplytic.com/help/site-script), the UTM values from the visitor's most recent tagged landing in the last 7 days are attached to their next tracked click too, and reports can group commission by `utm_source` or `utm_campaign`. It doesn't build a multi-touch model; it tells you which campaign the clicks that paid came from.

## Questions people ask

### What is UTM attribution?

It's crediting a conversion to the campaign, source and medium in the UTM tags of the visit or visits that led to it. The tags supply the labels; the analytics tool's attribution model decides which visit gets the credit.

### Does GA4 use first touch or last touch for UTMs?

Both, in different places. User acquisition shows the first source a user arrived from; Traffic acquisition credits each session; and key-event reports follow your chosen attribution model, data-driven by default or last click.

### Can UTMs track conversions on another website?

Only if that site's analytics records them and shares the results with you. Affiliate networks don't return UTM values, so use the network's sub-ID for anything you want back with a sale.

### Do UTMs work across devices?

Not by themselves. The tags are in one link clicked on one device. If the person later buys on another device, the tool can connect the two only if it recognizes them, for example because they signed in.
