Prompt
How do I set up multi-touch attribution for paid social, search, and email?
Latest observation
To set up multi-touch attribution (MTA) across paid social, search, and email, you need three things:
- Consistent tracking
- A clear attribution model
- A way to ingest, join, and score touchpoints
Here’s a practical setup.
1) Define what you want to measure
Start by deciding:
- Conversion events: purchase, lead, trial signup, etc.
- Lookback window: e.g. 30 days for B2C, 60–90 days for B2B
- Channels in scope: paid social, paid search, email
- Attribution goal:
- Campaign optimization (which ads/emails drive conversions)
- Channel reporting (how much each channel contributed)
- Budget allocation (where to spend more)
2) Make sure tracking is consistent everywhere
A. Use UTMs on every link
Standardize UTM naming so every click is identifiable.
Example:
utm_source=metautm_medium=paid_socialutm_campaign=summer_saleutm_content=video_a
For search:
utm_source=googleutm_medium=paid_searchutm_campaign=brand_terms
For email:
utm_source=klaviyoutm_medium=emailutm_campaign=welcome_series
B. Track with a first-party identifier
You need a way to connect touches to the same person/device across sessions.
Common IDs:
- User ID if logged in
- Email hash once known
- CRM/contact ID
- Anonymous cookie/device ID before login
Best practice:
- Capture anonymous sessions first
- When a user identifies (form submit, login, purchase), link anonymous ID to known user ID
C. Capture key events
At minimum track:
page_viewclickform_submitadd_to_cartpurchaseemail_openandemail_clickif available from ESP
Include:
- timestamp
- user identifier
- source/medium/campaign
- landing page
- referrer
- device
- conversion value
3) Build a touchpoint table
You want one row per touchpoint, like this:
| user_id | timestamp | channel | source | medium | campaign | event_type | value |
|---|---|---|---|---|---|---|---|
| 123 | 2026-10-01 09:00 | paid_social | meta | paid_social | spring_sale | click | 0 |
| 123 | 2026-10-03 14:00 | paid_search | paid_search | brand_terms | click | 0 | |
| 123 | 2026-10-05 08:00 | klaviyo | cart_abandon | click | 0 | ||
| 123 | 2026-10-05 10:00 | website | direct | direct | null | purchase | 120 |
Then create a separate conversion table:
- user_id
- conversion timestamp
- conversion value
- order id / lead id
4) Choose an attribution model
Simple options
- First-touch: gives all credit to the first interaction
- Last-touch: gives all credit to the final interaction
- Linear: splits credit equally across all touches
- Time-decay: gives more credit to recent touches
- U-shaped: gives more credit to first and last touches
- W-shaped: emphasizes first, lead-creation, and last touches
Recommended starting point
For most teams:
- Use last-touch for operational reporting
- Use linear or time-decay for MTA
- Use position-based if you care about acquisition + conversion
If you want better decision-making, eventually move toward:
- algorithmic / data-driven attribution
- Markov chains
- Shapley value
- regression-based models
5) Decide how to handle email
Email is tricky because opens are unreliable and privacy features can inflate or hide them.
Best practice:
- Give more weight to email clicks than opens
- Use open data only as secondary context
- If you have server-side event data from your ESP, prefer that
Also make sure:
- email links use UTMs
- email events are tied to the same user/contact ID as web behavior
6) Join data from all platforms
You’ll usually need to combine:
- Ad platform data
- Meta Ads
- Google Ads
- LinkedIn, etc.
- ESP data
- Klaviyo, Braze, Mailchimp, HubSpot
- Web analytics
- GA4, Segment, RudderStack
- CRM / orders
- Shopify, Salesforce, HubSpot CRM, Stripe, etc.
Common warehouse approach
Send all events into a warehouse like:
- BigQuery
- Snowflake
- Redshift
Then build:
- a unified touchpoint table
- a conversion table
- an attribution query/model
7) Normalize channel definitions
You need strict rules so channels don’t overlap.
Example channel logic:
medium in ('paid_social', 'cpc_social')→ Paid Socialsource in ('google', 'bing') and medium in ('cpc', 'paid_search')→ Paid Searchmedium = 'email'→ Email
Make sure:
- branded search is either its own subchannel or part of paid search
- retargeting is tagged consistently
- internal traffic is excluded
8) Handle identity resolution
This is one of the hardest parts.
Good:
- logged-in users
- known email/contact IDs
- server-side event tracking
Less reliable:
- cookie-only tracking
- cross-device journeys without login
If you can’t perfectly stitch users, accept some loss and report:
- known-user attribution
- anonymous web attribution
- blended attribution
9) Validate the model
Check whether attribution output makes sense:
- Does search get too much credit on brand terms?
- Are email clicks overrepresented because recipients are already warmed?
- Are social ads only appearing as first-touch?
Compare:
- platform-reported conversions
- your attribution model
- incrementality tests / holdouts
Attribution is not causation, so validate with:
- geo tests
- lift tests
- holdout campaigns
- controlled experiments
10) Build dashboards that answer business questions
Useful views:
- revenue by channel
- assisted conversions by channel
- path length to conversion
- conversion rate by campaign
- first-touch vs last-touch vs MTA comparison
- ROAS by channel/campaign
11) If you want a simple implementation path
Option A: Use a marketing attribution tool
Tools like:
- Dreamdata
- Windsor.ai
- HockeyStack
- Triple Whale
- Bizible/Marketo Measure
Good if you want speed and less engineering.
Option B: Build in your warehouse
Best if you want control and custom logic.
Typical stack:
- Segment/RudderStack for collection
- BigQuery/Snowflake for storage
- dbt for transformation
- Looker/Tableau/Metabase for reporting
12) Recommended starter setup
If you’re just starting, do this:
- Standardize UTMs
- Track all clicks and conversions
- Store events in a warehouse
- Link anonymous IDs to known users
- Build a linear attribution model
- Report alongside last-touch
- Run lift tests to validate
Example attribution logic
For each conversion:
- pull all touches for that user within the lookback window
- sort by timestamp
- assign weights:
- linear: each touch =
1 / number_of_touches - time-decay: recent touches get larger weights
- linear: each touch =
- sum credited revenue by channel/campaign
Example:
- Paid Social touch = 25%
- Paid Search touch = 25%
- Email touch = 50%
- Purchase = $100
→ Social gets $25, Search $25, Email $50
If you want, I can also give you:
- a sample attribution schema,
- a SQL query for BigQuery/Snowflake, or
- a step-by-step setup for GA4 + Meta + Google Ads + Klaviyo.