Revenue attribution guide
View as MarkdownReveata ties every payment to the visit that led to it, so you can see which channels, pages and campaigns bring in paying customers, not just traffic. Once you finish connecting a payment provider, revenue appears across your dashboard, next to every source, page and campaign. Read how revenue attribution works for the matching rules. Answer the questions below to get the exact setup for your stack. It takes about five minutes.
1. Which payment provider do you use?
2. How do customers pay?
Pick how your Stripe checkout is set up.
3. Add this to your code
When you create the Stripe checkout on your server, read our two first-party cookies and pass them along as metadata. That is the only change.
const session = await stripe.checkout.sessions.create({
mode: "payment",
line_items: [{ price: "price_123", quantity: 1 }],
success_url: "https://yoursite.com/thanks",
metadata: {
reveata_visitor_id: req.cookies._dt_v?.split(".")[0],
reveata_session_id: req.cookies._dt_s?.split(".")[0],
},
});Check it works
- Open your site in a private window from a link ending in ?ref=test.
- Pay with a Stripe test card, or a 100% discount code.
- The payment shows under Revenue with the source "test" once it arrives.
Missed a payment? Payments without these ids still count toward your total revenue. They are listed as unattributed until Reveata can match them to a visitor you identified, by user id or email.