attribution-credit-split v1.0.0
attribution-credit-split
A small Crystal command-line tool and library that shares the revenue of one won deal across the touchpoints that led to it, using an attribution model: first touch, last touch, linear or U-shaped. List the touches in the order they happened. When a channel appears more than once its credit is added up. Crystal 1.10 or later, no dependencies. Built by OneGTMLab (GTM engineering for B2B teams).
Install
dependencies:
attribution-credit-split:
github: jaizendra-netizen/attribution-credit-split
Or build the command: shards build (the binary lands in bin/).
Use
attribution-credit-split --model u-shaped --revenue 12000 --touches linkedin,webinar,email,demo
model u-shaped, revenue 12000.0, 4 touches
linkedin 4800.0 40.0%
webinar 1200.0 10.0%
email 1200.0 10.0%
demo 4800.0 40.0%
U-shaped gives 40% to the first touch, 40% to the last and shares the other 20% between the touches in the middle (one touch gets everything, two touches 50% each).
attribution-credit-split --model linear --revenue 900 --touches email,linkedin,email
model linear, revenue 900.0, 3 touches
email 600.0 66.7%
linkedin 300.0 33.3%
Models: first, last, linear, u-shaped (default linear). An unknown model, a revenue that is not a number or an unknown option prints error: ... and exits 1. From code: AttributionCreditSplit.split("linear", 900.0, ["email", "linkedin", "email"]).
Test
crystal spec
MIT licence.
attribution-credit-split
- 0
- 0
- 0
- 0
- 0
- about 3 hours ago
- November 28, 2026
MIT License
Sat, 28 Nov 2026 13:57:54 GMT