The Attribution Model Config Library is a free code snippet providing six real attribution models, last-click through Markov-chain removal-effect, as ready-to-plug functions against your own conversion-path data.
Pure functions you call against your own path data, not a hosted service or an analytics integration. Runs entirely in your own environment.
| File | Purpose |
|---|---|
attribution-models.js | lastClick(), firstClick(), linear(), timeDecay(), positionBased(), markovRemovalEffect(), plus the exported solveLinearSystem() Gaussian-elimination solver — zero dependencies |
test.js | 19-test suite, including hand-verified exact cases for the Markov removal-effect solver |
Builds a first-order transition model from your paths, then for each channel measures the removal effect: rebuild the model with that channel’s traffic truncated right before it, recompute overall conversion probability via an exact linear solve, and take the drop. This is the standard definition, simplified to work from converting-path data alone.
Yes. Free to download and use. MV3 charges $175/hr only if you want help wiring these into your real GA4/BigQuery export data.
Last-click, first-click, linear, time-decay, position-based (U-shaped), and a simplified Markov-chain removal-effect model.
No. Every function runs entirely in your own environment against data you supply.
It is a real, exact linear-algebra solve (not a Monte Carlo approximation), simplified to work from converting-path data alone rather than requiring a separate non-converting-path dataset.
An array of paths, each an ordered list of channel touchpoints plus a numeric conversion value, e.g. { channels: ['Organic Search', 'Email'], value: 500 }.
AI Marketing & SEO Automation, All States
AI Content & SEO Infrastructure for B2B companies that want to own their growth channel , not rent it.
(704) 317-2293 Get the Audit →We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
Google Tag Manager simplifies the management of marketing tags on your website without code changes.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.