Sub topic 7
The data-driven attribution model
This chapter assumes you can navigate GA4 reports, know what a key event (conversion) is, and recognise UTM parameters, source, medium and channel groups. It builds on the previous chapters on touchpoints, conversion paths and the last-click model.
What the model does
The data-driven attribution (DDA) model splits the credit for a key event across the touchpoints on a conversion path. Last click gives 100% to one channel. DDA gives each touchpoint a share, and the shares add up to one conversion.
GA4 does not use fixed rules to choose the shares. It uses a machine learning model trained on your property's own data. The model compares paths that ended in a key event with similar paths that did not. A touchpoint earns more credit when its presence is associated with a higher chance of converting.
The contrast with last click is easy to see in a toy example. This code does not reproduce GA4's algorithm. A real DDA model learns uneven shares from data, while this one splits credit equally to show the idea.
# 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.33How the model reaches its shares
Google does not publish the model's internals, so treat the following as a working description, not a specification.
- GA4 collects user-level paths, which are ordered lists of touchpoints, for users who converted and users who did not.
- The model estimates how much each touchpoint changes the probability of conversion. Google's documentation describes this as a counterfactual comparison: what would likely have happened without that touchpoint.
- The model turns these estimates into fractional credit for each converting path.
- The credit is reported against the channel, source, medium or campaign of each touchpoint.
Several properties follow from this.
- The model is specific to your data. Two properties with identical channels can see different credit patterns.
- The model is trained per key event. A purchase and a newsletter signup can show different credit patterns for the same channel.
- Credit is not tied to position. The first, middle and last touchpoint can each receive the largest share, depending on what the data shows.
- The result is a model, not a measurement. It estimates contribution. It cannot prove that a given touchpoint caused a conversion.
The numbers in the diagram are made up. The only fixed rule is that the shares for one conversion add up to 1.
Which touchpoints are eligible
GA4 considers touchpoints from the paid and organic channels it can see through source and medium data. This includes UTM-tagged links, Google Ads auto-tagging and organic referrals. Two rules from the previous chapters still apply.
- Direct traffic gets no credit when other touchpoints exist. A direct visit is credited only if it is the only touchpoint on the path. DDA follows the same rule as last click here.
- The lookback window limits the path. Only touchpoints inside the window before the key event are candidates for credit. The window is covered in its own chapter, and the setting is covered below.
Because untagged traffic often lands in "Direct" or "Referral", poor tagging can distort the model. DDA can only learn from the touchpoints GA4 can identify.
Reading fractional numbers in reports
DDA produces fractional key event counts. In a report using DDA, you may see a channel with 12.4 key events. This is correct. It is the sum of many partial credits.
Three consequences are worth knowing.
- A channel's total can change by decimals each time the model updates, even when no new conversions arrive.
- Totals across channels still add up to the total number of attributed key events. The model reassigns credit and does not create or remove conversions.
- If you export data to a spreadsheet or BigQuery, make sure the column type is numeric with decimals. Rounding or integer casting breaks the totals.
A quick check you can run on exported data:
# Verify that fractional credit still sums to the number of conversions.
credit_by_channel = {
'paid_search': 12.4,
'email': 20.1,
'organic_search': 31.9,
'direct': 5.6,
}
total_conversions = 70 # taken from a report that does not split credit
attributed = round(sum(credit_by_channel.values()), 6)
print(attributed) # 70.0
print(attributed == total_conversions) # TrueIf the two numbers differ, check whether the two reports use the same date range, the same key event and the same lookback window.
Data requirements and availability
Earlier attribution tools had minimum conversion and path thresholds for DDA. In GA4, data-driven attribution is available to all properties. It is also the default reporting attribution model for new properties. Low-volume properties can still use it, but the estimates are less stable, because the model has less data to separate the effect of one touchpoint from another.
Plan for the following situations.
- New property or new key event. The model has little history, so early credit shares can shift considerably.
- Very low conversion volume. Small samples make fractional credit noisy. Compare against last click before acting on small differences.
- A big change in tagging or traffic mix. A new campaign naming scheme or a new channel changes what the model sees. Expect the credit pattern to change as well.
Setting DDA as the reporting model
The reporting attribution model controls which model GA4 uses in reports that apply attribution. To set it:
- Open Admin and select the property.
- Under Data display, open Attribution settings.
- In Reporting attribution model, choose Paid and organic channels: data-driven.
- Review the lookback windows on the same page, then save.
The alternatives in the same menu are Paid and organic channels: last click and Google paid channels: last click.
Changing the setting affects how reports show historical data, because GA4 recalculates attributed credit when you view the report. It does not rewrite the underlying events. It also does not change which conversions Google Ads imports or counts in its own settings, which have a separate attribution configuration.
Lookback windows with DDA
DDA only considers touchpoints inside the lookback window. GA4 offers separate windows for two kinds of key events.
| Key event type | Typical default | Options |
|---|---|---|
| Acquisition key events (first_open, first_visit) | 30 days | 7 or 30 days |
| All other key events | 90 days | 30, 60 or 90 days |
A shorter window removes older touchpoints from the path. This tends to move credit toward channels that act close to the conversion, and it can also reduce the number of channels that appear on a path. A longer window gives early awareness channels more chance of appearing, but older touchpoints are less likely to have mattered. Match the window to your real sales cycle. A product that people buy in two days gains little from a 90-day window, while a high-consideration purchase may lose its early channels with a 30-day one.
Common errors and gotchas
- Treating DDA shares as causal proof. The model estimates contribution from patterns. An incrementality test or a holdout experiment is the way to check cause.
- Comparing DDA numbers to last click in the wrong report. Session-scoped acquisition reports use the session's source. Attribution reports use the reporting model. They are different views and rarely match.
- Expecting whole numbers. Rounding fractional credit in a dashboard hides small channels.
- Ignoring tagging quality. Missing UTM parameters move credit into direct or referral buckets, and direct is ignored when any other touchpoint exists.
- Reading the order of touchpoints as the order of importance. DDA can give the largest share to a first or middle touch.
- Forgetting that older guides describe other models. Rule-based models such as first click, linear, position-based and time decay were retired from GA4. Instructions that tell you to select them no longer apply.
Summary of how DDA differs from last click
| Aspect | Last click | Data-driven |
|---|---|---|
| Credit per conversion | 100% to one channel | Shared across touchpoints |
| Method | Fixed rule | Machine learning on your data |
| Counts | Whole numbers | Often fractional |
| Direct traffic | Ignored unless it is the only touchpoint | Same rule |
| Predictability | Easy to reproduce by hand | Cannot be reproduced by hand |
Exercise
A report using the data-driven model shows email with 18.7 key events, while the same report under last click shows email with 25 key events. A teammate says the data-driven number must be wrong because conversions cannot be fractional. How do you respond, and what would you check to confirm the totals are consistent?
Show answer
Fractional counts are expected, because the data-driven model shares one conversion across several touchpoints, so each channel gets partial credit. The lower email figure means the model credits email as part of paths where other channels also contributed, while last click gives email full credit whenever it was the last non-direct touchpoint. To confirm consistency, sum the credit across all channels in each report and compare it with the total number of attributed key events. Both sums should match, provided the date range, key event and lookback window are the same.
Exercise
You change the reporting attribution model from last click to data-driven. Which of these change, and which do not: (a) the session-scoped source/medium in the standard Traffic acquisition report, (b) the channel credit in the Advertising workspace, (c) the raw events collected by GA4?
Show answer
(b) changes, because the Advertising workspace uses the reporting attribution model. (a) does not change, because session-scoped dimensions describe how each session started and do not apply the attribution model. (c) does not change, because the setting affects how credit is calculated in reports and does not alter collected events.