attribu.tech Documentation
attribu.tech tracks which traffic sources generate paying customers. Install a lightweight script on your site, connect Stripe, and see exactly which ads, referrers, and campaigns drive revenue.
How it works
- Install the pixel on your website (one script tag)
- Connect Stripe with a restricted API key
- Pass the visitor ID to Stripe checkout as metadata
- View your dashboard to see revenue broken down by source
Quick start
1. Add the tracking script
Add this to every page on your site, ideally in the <head> tag:
<script
defer
data-website-id="YOUR_SITE_ID"
data-domain="yourdomain.com"
src="https://attribu.tech/js/script.js"
></script>You'll find your Site ID and the exact snippet in Settings > General after creating a site.
2. Connect Stripe
Go to Settings > Revenue and paste your Stripe restricted API key (rk_live_...). attribu.tech will automatically import your recent charges and listen for new ones via webhooks.
3. Pass visitor ID to checkout
When creating a Stripe Checkout session, include the attribu.tech cookies in the metadata:
const session = await stripe.checkout.sessions.create({
// ... your checkout config
metadata: {
attribu_visitor_id: req.cookies.attribu_visitor_id,
attribu_session_id: req.cookies.attribu_session_id,
},
});This links the payment back to the visitor, so attribu.tech can attribute it to their traffic source.
4. View your dashboard
Once events and charges flow in, your dashboard will show revenue by channel, referrer, campaign, country, and more.