Skip to content
tezvyn:
Menu

Design a multi-touch attribution model

Source: interviewMediumHow cards are made

Summary

spreading credit across a long journey.

Key points

pick a model (time-decay, position-based, or data-driven Shapley), stitch touchpoints by user identity into ordered paths, then assign fractional credit.

What's really being asked

The interviewer wants both a defensible attribution model and the data engineering to support it, recognizing that long, multi-channel journeys make single-touch models misleading.

The full answer

Start with model choice. Heuristic options include linear (equal credit), time-decay (more credit near conversion), and position-based or U-shaped (heavier on first and last). Data-driven options such as Shapley-value or Markov-chain removal-effect attribution learn credit from observed paths and are harder to game but need volume and rigor. State the trade-off: heuristics are transparent and cheap; data-driven models are more accurate but opaque and data-hungry. For implementation, resolve identity so anonymous and known interactions map to one user, ingest timestamped touchpoints from ad platforms, web, and product events, sessionize them into ordered paths, and define a conversion event plus a lookback window. Then apply the chosen credit rule and roll results up by channel and campaign for ROI.

The mistakes people make

Falling back to last-touch, ignoring identity resolution so paths fragment, omitting the lookback window so ancient touches get credit, or proposing Shapley without acknowledging its data and compute demands.

What usually comes next

How do you validate an attribution model when ground truth is unknown? How do incrementality experiments or geo-tests complement attribution? How do you handle cross-device and privacy-driven identity loss?

A concrete example

A user clicks a paid search ad, returns via email a week later, reads a blog post, then converts after a retargeting ad. A U-shaped model gives 40 percent each to the first paid-search and last retargeting touch and splits 20 percent among the middle two. The pipeline stitches all four events to one user id, orders them within a 30-day window, and credits each channel so the marketing team sees that paid search, not just retargeting, deserves budget.

Interview question

What capability is most essential before any multi-touch attribution model can produce meaningful results?

  • a.A fixed 7-day conversion window for all campaigns
  • b.Resolving identity to stitch a user's touchpoints across channels into one ordered pathCorrect
  • c.Real-time streaming of every ad impression
  • d.A neural network trained on conversion data
Why?

Without identity resolution, touchpoints fragment across devices and channels and no model can reconstruct the true path. The window length and streaming are secondary, and a neural net is not required.

Just read this? Test yourself on what you have been reading.

Read the original → improvado.io

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles