One dashboard
Visitors, revenue, conversion rate and revenue per visitor in one view, with pages, referrers and devices below.


Revtrail ties every payment to the visit that brought it. See revenue by channel, page and campaign, and spend your time on what sells.
Open source. Run it in the cloud or on your own server.
Revtrail
Revenue by channel
Paste one line into your site’s <head>. The script is under 6 KB gzipped and starts counting visits straight away.
<script defer src="https://<your-revtrail-domain>/script.js"
data-website-id="<your-website-id>"></script>Add a webhook URL in Dodo. Revtrail matches each payment to the visit that led to it and takes refunds off automatically.


Revenue by channel, referrer, campaign, page and country, so you know what to do more of and what to drop.


Everything you expect from web analytics, with revenue next to each number.
Visitors, revenue, conversion rate and revenue per visitor in one view, with pages, referrers and devices below.


Each payment is tied to the visit it came from, so you can break revenue down by channel, referrer, UTM campaign and country, with first-click or last-click attribution.


Track sign-ups and checkouts, see where people drop off, and follow the paths that end in a sale.


Your traffic on a world map, down to region and city. Switch to realtime to watch visits as they arrive.


Also included
Connect Claude, Cursor or any other MCP client, then ask things like “which channel brought the most revenue last month?” The answer comes from your own Revtrail data. The assistant gets your account’s permissions, so give it a read-only API key if it should only read.
Which channel brought the most revenue last month?
Direct brought the most: $36.7k from 1,200 visitors.
{
"mcpServers": {
"revtrail": {
"url": "https://<your-revtrail-domain>/mcp",
"headers": { "Authorization": "Bearer <your-api-key>" }
}
}
}If you can add a script tag, you can use Revtrail. Revenue comes from Dodo Payments.
Revenue
Dodo Payments
Payments and refunds arrive by webhook and are matched to the visit that brought the buyer.
Tracking
Any website
The script gives each visit a session id, which travels with the checkout as payment metadata. Dodo payment links get it automatically; for checkouts you create on your server, you pass it yourself. When Dodo sends the payment webhook, Revtrail adds the payment to that session, with its channel, referrer and campaign.
It still counts toward your revenue, as “direct”. If you call identify() with your user id, the payment is credited to that user’s first session instead.
Dodo Payments, including refunds, which are taken off your revenue. More providers are planned.
By default the script sets a first-party cookie so returning visitors are counted accurately. Depending on where you and your visitors are, that may need consent. With cookieless mode on, the script sets no cookies and most sites can skip the banner, but visitor counts reset each month. Check with your own legal advisor.
Yes. Revtrail is open source and built on Umami (MIT licence). It runs on a single small server with Docker and Postgres.
You do. Self-hosted, it never leaves your database, and you can export it through the REST API at any time.
Yes. Revtrail has an MCP server at /mcp, so Claude, Cursor and other MCP clients can query your traffic and revenue. The connection uses an API key with your account’s permissions, so use a read-only API key unless you want the assistant to create goals or segments too.
Add the script today and watch revenue by channel fill in as payments arrive.