Revenue per traffic source
Visitors per source is easy. Money per source is what tells you where to post next, and it usually needs cookies or a heavy setup.
Updated Dec 2, 2026.
The short answer.
The Appsdash snippet gives each page load a random visit id kept in memory only. Pass it into your checkout as metadata (one line for Stripe, Paddle, Lemon Squeezy or Polar; a small server route for Whop). When the sale syncs, Appsdash finds that visit and credits its source, campaign, landing page, country and device. No cookie or storage is used.
How a sale finds its visit
The visit id is 16 random characters, sent with every hit and replaced after 30 idle minutes or at midnight UTC. Your checkout copies it onto the payment (Paddle customData, Stripe client_reference_id or metadata, Lemon Squeezy checkout custom data, Polar metadata, Whop checkout configuration metadata). Appsdash then walks back from the last hit with that id to the page where the visit started.
Each sale is labelled attributed (the id matched), matched by time (no id, and exactly one visitor viewed a page in the 30 minutes before) or unknown. The share of each is on the page, so you can see how much of the split is solid.
What you get per source
Sales, revenue, visitors and revenue per visitor for sources, campaigns, mediums, landing pages, pages viewed before buying, referrers, countries, devices, browsers and operating systems. The traffic tables gain Revenue and Per visitor columns, and the chart's tooltip names the source that brought each day's sales.
Each AI assistant's domain (chatgpt.com, perplexity.ai, claude.ai and others) shows as its own source row, so you can see whether AI answers send buyers or just readers.
How to set it up.
14 days of everything, no card. Then Solo from $9 a month for one app, or Studio from $19 for every app.
- Install the snippet. Under 2 KB gzipped. It exposes appsdash.visit() on the page.
- Connect your payment provider. Read-only key. Stripe also needs Checkout Sessions read so sessions carrying the id are seen.
- Add one line to checkout. The snippets below. Keep any data you already send; add the visit id beside it.
- Wait for the first sale. Settings > Revenue shows Waiting, No match yet or Working.
The checkout line.
Lemon Squeezy, Polar, Whop and Stripe Payment Links have their own versions in Settings > Revenue.
Paddle.Checkout.open({
items: [{ priceId: "pri_...", quantity: 1 }],
customData: { appsdash_visit: window.appsdash?.visit?.() ?? "" },
});Keep any customData you already send (like product): add appsdash_visit beside it. Paddle copies it onto renewals.
// browser: send the visit id with the request that makes the session
fetch("/api/checkout", { method: "POST", body: JSON.stringify({ priceId, visit: window.appsdash?.visit?.() ?? "" }) });
// server
const session = await stripe.checkout.sessions.create({
mode: "subscription", // or "payment"
line_items: [{ price: priceId, quantity: 1 }],
client_reference_id: visit || undefined,
success_url, cancel_url,
});Already use client_reference_id? Put it in metadata: { appsdash_visit: visit } instead. The key needs Checkout Sessions read.
What it doesn't do.
- First sales only: renewals and refunds are not credited to channels (they still count in revenue and MRR).
- Without cookies, a buyer who reads today and buys next week is tied to next week's visit.
- Lemon Squeezy sends custom data only to webhooks, so its webhook must be on for the id to arrive.
Questions.
Why not use a cookie?
No cookie means no consent banner for the tracker. The cost is that multi-day journeys aren't joined; the page says so instead of guessing.
What about sales from before I added the line?
They're matched by time where possible, else unknown. Attributed sales start with the first checkout that carries the id.
Can my AI agent add the checkout line?
Yes. Over the MCP server with setup access, the agent gets the exact checkout code for your provider.
Read next.
- Revenue per channel with Plausible
- See which app makes money
- PostHog plus Stripe revenue, per source
- Set it up with Claude Code
- Compare with DataFast
- All guides
Spotted something wrong? Write to younes@appsdash.co and it gets fixed.
See which app and which channel pays.
14 days free · no card