Help center › Reports and checks

Attribution and customer journeys

Which ads led to sign-ups and payments: Megametrics puts a person's visits into a path and splits each conversion between the touches by the model you choose. Any number opens down to the people and visits it is made of.

Where the numbers come from

Attribution needs the website code. Every visit to the website is a touch: from an ad, search, social networks, email, another website, or a direct visit. A paid touch has an ad click ID or a paid utm_medium. A conversion is an event marked with the Conversion switch in the Website and events panel: from the website, your server or a webhook. Its value is the event's value, in the event's currency.

A touch finds its campaign first by the platform and the campaign ID in utm_id, then by the utm_campaign label — by the campaign's labels as in Explorer, in this order: a manual link, the name, the ID. How to put labels in ads — see Labels in ad links. The share of a touch without a campaign stays with its platform, if known, or with its channel.

Where to look

On the Campaigns page, choose the Attribution view. Above the table are the model, the window and the conversion date / click date switch; the choice is kept in the page address, so a link opens the same picture. Below them, one sentence says how the chosen model splits the credit.

  • Columns: spend, conversions and value by the model, cost per conversion, ROAS, conversions as the platform counts them, and the difference “ours − platform” with its sign and share.
  • ROAS is shown only when the value's currency is the campaign's currency; otherwise “—”. Currencies are never added up.
  • The line above the table shows coverage: for example, 82% of conversions linked to ads and the website, and 41 (18%) with no touch in the window.
  • Below the table, How the model changes the picture gives each platform and channel two dots: the hollow one is its share of revenue by last click, the filled one by the chosen model. Table shows the same numbers as a table.

The same numbers are in the Attribution dataset in Explorer — see below.

Models

An example: one path of three touches. Anna bought for 120 euros:

  1. 21 days before the purchase, she clicked a Meta ad;
  2. 7 days before, she came from Google search;
  3. on the day of the purchase, she typed the address herself and bought.

How the seven models split this purchase:

  • Last click — everything to the last touch: 100% to the direct visit.
  • Last non-direct click (the default) — everything to the last touch that isn't a direct visit: 100% to search. If the person only ever came directly, the direct visit gets the credit.
  • First click — everything to the first touch: 100% to the Meta ad.
  • Linear — an equal share to every touch: 33.3% each.
  • Linear, paid only — an equal share to every paid touch: 100% to the Meta ad, the only paid one. Without paid touches, the conversion goes to the “No paid touch” row.
  • U-shaped — 40% to the first touch, 40% to the last, 20% split equally between the touches in the middle: Meta 40%, search 20%, direct 40%. A single touch gets 100%, two get 50% each.
  • Time decay — the closer to the purchase, the more weight. A touch's weight is 2 to the power of −(days before the conversion / 7): a touch 7 days before weighs half as much as one on the day of the purchase, 14 days before a quarter. Then the shares are scaled to 100%: Meta 7.7%, search 30.8%, direct 61.5%.

A campaign gets its share of the conversion and the same share of the value: by the U-shaped model, the Meta campaign gets 0.4 conversions and 48 euros. The shares of one conversion always add up to 100%, so the conversions of all rows, with the no-touch row, add up to exactly the number of conversions: nothing is counted twice.

The window and the date

The window — how many days before a conversion a touch still counts: 1, 7, 14, 30, 60 or 90 days, or all time. The default is 30 days. Touches before the window don't enter the path. In the example, with a 14-day window the Meta click 21 days before the purchase drops out: by first click the purchase goes to search, and Linear, paid only sends it to “No paid touch”.

The date — which day the conversion lands on:

  • Conversion date (the default) — the day of the purchase. The numbers for a period then match the revenue of that period.
  • Click date — each share lands on the day of its touch. The period picks touches by their dates, and conversions are taken up to today. So the numbers of the last days still grow: someone who clicked yesterday may buy next week.

Why the numbers differ from the ad accounts

The difference “ours − platform” is almost never zero. It's a different count, not an error:

  • Every ad account claims the conversion. Someone clicked a Meta ad and a Google Ads ad and bought once — both accounts show a conversion. Here the purchase is split between the touches, and together the platforms get exactly one.
  • Their own windows. Meta usually counts 7 days after a click and 1 day after a view, Google Ads 30 days after a click. The exact window is in the conversion's settings in the ad account.
  • Views. An ad account also counts conversions after an ad was seen but not clicked. Here a touch is only a visit to the website.
  • Modeled conversions. Ad accounts add conversions they didn't see — for example, from people who declined cookies. Here only recorded events count.
  • The date. By default, Google Ads and Meta put a conversion on the day of the click or the view; here, by default, on the day of the conversion.
  • Which event. The ad account counts its own conversion action; here — the events marked as conversions. If they are different events, the numbers differ.

To reconcile one campaign:

  1. In the ad account, look up the conversion's click window — for example, 7 days.
  2. Choose Click date and the same window.
  3. Compare the conversions with the platform's conversions over the same period.

What remains is views, modeled conversions and other platforms' touches in the same paths. The last can be removed in the API: GET /api/projects/<project>/campaigns takes a platform parameter — other platforms' touches are dropped before the model, and you see the count the way that one platform sees it. Conversions without that platform's touches in the window then go to a row like “No Google Ads touch”.

No touch

A conversion whose person has no touch in the window isn't lost or split at random: it goes into a separate row, “Not linked to ads or the website”. Most often it's:

  • an event from your server or a webhook that didn't link to a visit: no visitor token, and an email or phone the website never saw;
  • a person whose visits are all before the window or before the code was installed;
  • a visit a blocker stopped.

Coverage above the table says which share of conversions is linked to touches. Click the number of no-touch conversions to see their list. A longer window never gives more of them. To have fewer, send mm_token, the email or the phone from your server — see Website code and events.

The Linear, paid only model has one more row, “No paid touch”: there were touches in the window, but none was paid. With this model, coverage counts the conversions with a paid touch.

A person's journey

Click an attribution number in the table to open its passport: the model and the window in words, coverage, the date tracking started, and the SQL query behind the number. Below is What it's made of: the first 50 conversions with this campaign's share, newest first. Click a conversion, and the same panel shows the person's journey:

  • The header, such as “Visitor #8f3a · 2 devices · email (hashed)”: the first 4 characters of the ID, how many devices and browsers with visits are linked, and by what — email, phone or your own ID. The email and phone themselves aren't there: we keep only their hashes.
  • Touches in time order: when, where from — the platform and campaign, or the channel — the landing page without address parameters, the device, and the touch's share of this conversion by the chosen model. The shares add up to 100%.
  • At the bottom, the conversion: the event, its value and where it came from — the website, your server, Stripe, Shopify or a webhook.

Back to the list returns to the list of conversions.

A viewer sees the numbers, passports and journeys. Admins and the owner can also click Delete this person's data and confirm by typing: the person's hits, visits, events and links are deleted, as with the form on the Sources page (see Website code and events). Attribution is counted from this data, so their conversions and touches leave the numbers of every period. Copies of touches and events already transferred to a warehouse aren't deleted: delete them in the warehouse.

In Explorer, boards and the API

Explorer has the Attribution dataset: breakdowns by date, platform, campaign, channel and event; metrics — conversions and value by the model. The dataset has three parameters: the model, the window and the date. It works in boards, exports, the API and MCP too. It has no spend: broken down by anything but campaign and day, spend would be counted twice. Cost per conversion and ROAS are on the Campaigns page.

In an API query, the dataset is "dataset": "attribution", and the parameters are the attribution field:

"attribution": {"model": "u_shaped", "window": 30, "by": "click"}
  • model — last_click, last_non_direct (the default), first_click, linear, linear_paid, u_shaped or time_decay;
  • window — 1, 7, 14, 30, 60 or 90 days, 0 for all time;
  • by — conversion (the default) or click.

The AI analyst knows the tables of touches, events and people and the rules of the models — ask it in words. Over MCP, the get_journey tool returns a person's journey, without email or phone. The touch and event tables can be copied to a warehouse, and attribution counted there with the passport's SQL as a template.

Limits

  • Tracking starts on the day the code is installed. There are no visits before it, and they can't be collected afterwards. While tracking is shorter than the window, a strip above the table says so: paths before that date are incomplete, and the numbers of the first weeks are understated.
  • Blockers. Ad and tracker blockers stop the code on some visits, and the touch is lost. A payment sent from your server or a webhook still arrives — and goes to “no touch” or to an earlier touch.
  • Safari keeps cookies set by a script for no more than 7 days. Someone who comes back after a week looks like a new visitor: their earlier click links to the purchase only if they leave the same email or phone again. So in Safari the first touches of long paths are lost more often.
  • No impressions. A touch is a visit to the website. An ad that was seen but not clicked doesn't enter the path.
  • No browser fingerprint. One person's devices are linked only by email, phone or your own ID.

Next: Explorer: any slice of your data

Didn't find the answer?

Write to us — a person replies within one working day.