Sub topic 1
What attribution is and why it matters
Prerequisites
This chapter assumes you already know three things:
- The GA4 interface. You can open a standard report and read a table of dimensions and metrics.
- Conversions. GA4 now calls them key events. A key event is an event you mark as important, such as
purchaseorgenerate_lead. - Traffic sources. You know what a source, a medium and a UTM parameter are. A UTM parameter is a tag added to a URL so that analytics tools can tell where a visit came from.
Later chapters cover each of these in more depth. Here you only need the vocabulary.
What attribution is
Attribution is the process of deciding which marketing touchpoints get credit for a conversion. A touchpoint is one interaction that brought a user to your site or app. Examples are a click on a paid search ad, a click on a link in an email, and a visit from an organic search result.
A user rarely converts after a single touchpoint. A typical buyer might find you through a search ad, come back through an email a week later, and buy after a third visit. That sequence is a conversion path. Attribution answers one question about every path: which touchpoint, or which touchpoints, earned the conversion?
An attribution model is the rule set that answers it. Different models give different answers from the same data. Neither answer is wrong. Each one reflects a different view of what "earning" a conversion means.
Why it matters
The credit you assign decides where the budget goes. Suppose paid search starts many paths and email finishes many of them. A model that only rewards the final touchpoint will make email look strong and paid search look weak. If you cut paid search because of that report, you may later find that email conversions fall too, because fewer people entered the path.
Attribution therefore affects three kinds of decisions:
- Budget allocation. Which channels get more money and which get less.
- Performance reporting. Which campaigns look successful in reports to your team.
- Optimization. If you import conversions into Google Ads, the credit assignment changes what bidding algorithms learn from.
The model does not change how many conversions happened. It changes which channel is credited with them.
A worked example
Consider the URL below. It is a landing page tagged with UTM parameters. GA4 reads these parameters and records the source, medium and campaign for the session that starts on this page.
https://www.example.com/spring-sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_saleThe session that arrives through this link has the source newsletter, the medium email and the campaign spring_sale. If the user buys during or after that session, the email touchpoint is a candidate for credit.
Now look at three user paths, each ending in one conversion:
| Path | Touchpoints in order |
|---|---|
| A | paid search, email, direct |
| B | organic search, paid social |
| C | direct |
The next program gives all the credit for each path to a single channel. It uses the last-click idea, with one detail: a final direct visit does not take credit from an earlier non-direct touchpoint. This is a toy illustration and is not GA4's implementation.
# Toy illustration of last-click credit (not GA4's implementation).
# Each path is a list of channels ending in a conversion; 'direct' is skipped
# unless it is the only touchpoint, mirroring how GA4 treats direct traffic.
def last_click_credit(path):
non_direct = [c for c in path if c != 'direct']
return non_direct[-1] if non_direct else 'direct'
paths = [
['paid_search', 'email', 'direct'],
['organic_search', 'paid_social'],
['direct'],
]
credit = {}
for p in paths:
channel = last_click_credit(p)
credit[channel] = credit.get(channel, 0) + 1
print(credit) # {'email': 1, 'paid_social': 1, 'direct': 1}Read the result against the paths:
- Path A gives its conversion to
email, not todirect, because direct is skipped when an earlier non-direct touchpoint exists. - Path B gives its conversion to
paid_social, the last touchpoint. - Path C has no other touchpoint, so
directkeeps the credit.
Notice what the result hides. paid_search and organic_search started paths but received nothing.
Two ways of assigning credit
Models fall into two broad families. The difference is whether credit goes to one touchpoint or is shared among several.
The second program contrasts the two. The equal split is only an illustration of shared credit. GA4's data-driven model does not split equally. It learns fractional credit from your own data with machine learning.
# Toy contrast between last-click and a fractional split (illustration only).
# GA4's data-driven model learns fractional credit from your data with machine
# learning; the equal split below only shows the idea that credit is shared.
path = ['paid_search', 'email', 'organic_search']
last_click = {path[-1]: 1.0}
shared = {c: 1 / len(path) for c in path}
print(last_click) # {'organic_search': 1.0}
print(shared) # each channel gets about 0.33The first dictionary gives the whole conversion to organic_search. The second gives each channel about a third. The sum is 1.0 in both cases, so the total number of conversions is unchanged. Only the distribution moves.
The two models in GA4
GA4 offers two attribution models for reporting. They are the subject of the rest of this tutorial.
| Model | How it assigns credit | Main trait |
|---|---|---|
| Cross-channel last click | All credit to the last non-direct touchpoint | Simple and easy to explain |
| Data-driven | Fractional credit across touchpoints, learned from your data | Reflects the contribution of earlier touchpoints |
A third option, Google paid channels last click, applies last-click logic but gives credit to Google Ads touchpoints where they exist. It gets its own chapter.
Older guides describe rule-based models such as first click, linear, position-based and time decay. Those models were retired from GA4, so a guide that tells you to select one is out of date. A later chapter covers this.
What attribution does not do
Attribution has limits that matter when you read reports:
- It works on observed touchpoints. A visit that GA4 did not record, such as a user who declined consent or a view of an offline advertisement, cannot receive credit.
- It does not prove cause. A model assigns credit by a rule or by a statistical pattern. It does not show that removing a channel would remove its credited conversions.
- It depends on tagging quality. Missing or inconsistent UTM parameters push traffic into the wrong channels or into direct.
- It is bounded by a lookback window. Touchpoints older than the window are not considered. A later chapter explains the windows.
Where attribution appears in GA4
You will meet attribution in three places:
- Admin settings. The reporting attribution model and the lookback windows are set per property.
- Advertising reports. The Attribution section holds the model comparison report and the conversion paths report.
- Standard reports. Acquisition and other reports show conversions credited according to the reporting model you chose.
The next chapters build up to these places in order. First comes the data that feeds attribution (traffic sources and key events). After that come the models. Last come the settings and the reports.
Summary
- Attribution assigns credit for a conversion to the touchpoints on its path.
- A model is the rule that decides how credit is shared. It changes the distribution of credit, not the number of conversions.
- Last click gives all credit to one touchpoint. Data-driven attribution splits credit using patterns learned from your data.
- The quality of attribution depends on tagging, consent and the lookback window.
Exercise
A property has three conversions. Their paths are: (1) paid search, then email; (2) organic search, then direct; (3) direct only. Using the last-click rule from the chapter, in which a final direct visit does not take credit from an earlier non-direct touchpoint, how is credit assigned? What changes if you use an equal split instead?
Show answer
Under last click, path 1 gives credit to email, path 2 gives credit to organic search because direct is skipped, and path 3 gives credit to direct. The result is email 1, organic search 1, direct 1. Under an equal split, path 1 gives paid search 0.5 and email 0.5. Path 2 has two touchpoints, organic search and direct. An equal split that counts direct would give each 0.5, while GA4 would not give direct a share when a non-direct touchpoint exists. Path 3 gives direct 1. In both cases the total is 3 conversions. Only the distribution among channels changes, and paid search gains credit only under the shared approach.
Exercise
A colleague says that switching to a different attribution model will increase the number of conversions in your property. Is that correct? Explain.
Show answer
No. A model changes which touchpoints receive credit, not how many conversions occurred. The total of credited conversions stays the same, and only its split across channels changes.