Half your marketing is wasted. See which half.
Install one script. Headstream connects your traffic to your Stripe revenue, then tells your AI agent what to fix next, ranked by dollars.
Create your account- Organic search$7,088
- Email$5,003
- Paid search$3,752
- Organic social$2,919
- AI search$2,084
✓ Matches Stripe: $20,846 of $20,846
Let your agent do the setup
Paste this into Claude Code, Cursor or any coding agent. It installs the script, proves it works, and asks you only when a step needs a person.
Read https://headstream.app/agent.md and set up Headstream on this site.1
Add one script
A 2 KB tracker records every visit, campaign and click ID.
2
Connect Stripe
Read-only access. Your history imports automatically.
3
See what pays
Revenue is credited back to the channels that earned it.
4
Your agent ships the fix
It gets the top fix with evidence, makes the change, and checks if it worked.
Attribution you can check against your bank account
Reconciled to Stripe
Attributed plus unattributed always equals your Stripe total. If it doesn't, the report won't publish.
Four attribution models
Switch between first touch, last touch, linear and U-shaped, with a lookback window you control.
Every customer's journey
Open any buyer and see each visit and payment in order, so a credit is never a black box.
Analytics included
Traffic, sources, campaigns, pages, countries and devices sit next to revenue in one dashboard.
Built for agents
Everything in the dashboard is available over MCP, REST and a CLI, including a ranked list of what to fix.
First-party tracking
Serve the script from your own domain, with long-lived visitor IDs across subdomains.
Pricing
Priced by events per month. No sales call needed.
Free
$0/mo
10,000 events a month
Starter
$99/mo
250,000 events a month
Growth
$299/mo
1,000,000 events a month
Scale
$799/mo
5,000,000 events a month