Sub topic 7
The data-driven attribution model
This chapter assumes that you know what GA4 key events, sessions, source, medium, and UTM parameters are. It also assumes that you have seen a conversion path: the sequence of marketing interactions before a user completes a key event.
What data-driven attribution means
Attribution is the process of assigning credit for a key event to the touchpoints that preceded it. The data-driven attribution (DDA) model uses your property's data to divide that credit. It does not always give the entire value to one channel.
GA4's machine-learning model compares paths that led to a key event with paths that did not. It estimates how each touchpoint changes the probability of the key event. Touchpoints that appear more influential receive more credit. The result is fractional credit, such as 0.6 of a conversion for paid search and 0.4 for email.
The model learns from your data rather than applying a fixed rule such as “first interaction gets 50 percent.” This makes DDA more responsive to your users' actual behavior, but it also makes the result less simple to explain.
How the model works
A conversion path can include several source and medium values:
https://www.example.com/spring-sale?utm_source=newsletter&utm_medium=email&utm_campaign=spring_saleGA4 uses these traffic-source signals, along with other eligible interaction data, to form paths. For each key event, DDA estimates the contribution of the touchpoints in the path. The assigned values across the path add up to the key event's total credit.
flowchart TD
A[Traffic-source data] --> B[Conversion and non-conversion paths]
B --> C[Model estimates touchpoint influence]
C --> D[Fractional credit by channel]
D --> E[Attribution report]Last click compared with DDA
Last click assigns all credit to the final eligible touchpoint. DDA distributes credit when the data suggests that earlier interactions contributed to the outcome.
| Model | Credit assignment | Main strength | Main limitation |
|---|---|---|---|
| Cross-channel last click | All credit goes to the last eligible touchpoint | Simple and easy to report | Can undervalue earlier interactions |
| Data-driven attribution | Credit is divided according to estimated contribution | Reflects interactions across the path | Requires interpretation and enough usable data |
This toy example shows the difference. It is not GA4's implementation.
# Toy contrast between last-click and a fractional split.
# The equal split only illustrates shared credit.
path = ["paid_search", "email", "organic_search"]
last_click = {path[-1]: 1.0}
shared = {channel: 1 / len(path) for channel in path}
print(last_click) # {'organic_search': 1.0}
print(shared) # each channel gets about 0.33Limits and common errors
DDA is not proof that a channel caused a key event. It is an estimate based on observed paths. Correlation, missing tagging, consent restrictions, and untracked interactions can affect the estimate.
The model also depends on the selected key event and lookback window. A touchpoint outside that window cannot receive credit for the event. Changing the window or key event can therefore change the results without any marketing activity changing.
Do not compare DDA values with last-click values as though one is a correction of the other. They answer different questions. DDA asks which touchpoints appear to contribute across observed paths. Last click asks which eligible touchpoint was last.
Exercise
A path contains paid search, email, and organic search. Last click assigns all credit to organic search, while DDA assigns 0.45 to paid search, 0.35 to email, and 0.20 to organic search. What is the main difference between the models?
Show answer
Last click uses one fixed touchpoint, while DDA shares credit according to the model's estimated contribution from observed data.