Attribution
Working out which channels and touches led to a customer.
Attribution assigns credit for a conversion to channels and campaigns. All models are imperfect, and privacy changes make tracking harder. Asking customers how they heard about you is a cheap, useful complement.
Why it matters for a product engineer
Attribution decides which channel gets credit for a customer, and so where the next euro goes. Every model is a simplification, and privacy rules, blocked scripts and AI answers hide more of the path each year. Engineers decide what is collected and how long it is kept. A simple, honest setup with known gaps is worth more than a detailed one nobody can explain.
How to do it
- Tag every link you control with campaign labels, such as UTM parameters, using one naming scheme.
- Choose a model and a lookback window, and write them down. Last click and data-driven models give different answers.
- Keep only what you need: the labels and the origin of the referrer, not full URLs or identities.
- Ask new customers how they heard about you, with a free-text answer. It finds podcasts, friends and AI answers that leave no trace.
- Compare channels by what their users do later, not by visits.
- Write down what your setup cannot see, and do not read the gaps as “direct” traffic.
Common mistakes
- Treating the model’s answer as the truth about cause.
- Giving all credit to the last click, which favours search ads and brand searches.
- Tracking people across sites and devices without consent.
- Never asking customers, because the dashboard seems complete.
Example
Mamitsu’s maker can see Mamitsu cited more often in AI answers, but not whether those citations bring users. People may read an answer and search for the name later. The cheapest next step is one question at sign-up. This site keeps campaign labels for 30 minutes in one browser tab, and no further. (Mamitsu in In practice)
How this site attributes a visit, and where it stops
The labels follow a visit for half an hour, not a person. Anything wider needs a question, not more tracking.
Observeddocs/analytics.md in this site's repository, Nov 2026
Sources: Get started with attribution (Google Analytics Help) ↗
In practice
Real productsResources
1- docsStart here
Get started with attribution ↗
Google Analytics Help · 8 minAttribution models and lookback windows explained by one of the most widely used analytics tools.