Self-hosted revenue analytics

Know which tweet made you $1,240.

Connect Stripe, Polar, Dodo or Creem to see which posts, searches and links lead to sales. Host the dashboard, API and tracker on infrastructure you control.

Sample data · Installation guide

Sample site
9 online
Conversion
0%
+8.4%
Revenue/visitor
$0
+17.6%
Bounce rate
46%
+2.1%
Session time
3m 8s
+9.0%
Online
9
 
Fig. 1The dashboard for a sample site. Open the live sample workspace. Click Visitors or Revenue to toggle them, hover the chart and its notes, and click a referrer to filter everything by it.
Payment providers
Stripe Polar Dodo Payments Creem

Follow the buyer journey

The examples below use sample data. Explore the deployed dashboard to try the reports.

01Traffic

Where visitors come from, and what they read.

Compare traffic by source, referrer, campaign, page and device. Traffic from ChatGPT, Claude and Perplexity gets its own channel. Every page shows the revenue it led to.

Pages

Last 30 days

Pageviews
0
+7.5% vs previous
Sessions
0
+11.2%
Avg. bounce
0
+1.4%
Avg. duration
1m 43s
+6.0%
Revenue
0
+31.6%
All pages
PageTrendViewsSessionsBounceDurationRevenue
Fig. 2Pages, with a trend line and the revenue each one led to. Search to filter.
02Revenue

Every payment, credited to the visit that brought it.

Connect Stripe, Polar, Dodo or Creem per website. Match supported payment events to a tracked visitor, and import historical orders with the CLI.

Revenue

Last 30 days

Revenue
0
+31.6% vs previous
Sales
0
+18.0%
Avg. order
0
−4.2%
Attributed
0
to a source
SourcesRevenue
CountriesRevenue
Fig. 3Illustrative revenue per day, with sample source and country breakdowns.
03Peak hours

When they visit, and when they pay.

Your week laid out hour by hour, in your time zone. DataMate outlines your busiest three hours, tells you when to post so you're there before the peak, and shows when buyers actually pay, which is often not when most people visit. Switch to Sales, and hover any hour.

Peak hours

Last 30 days · New York time

Local time (America/New York)LessMore
Fig. 4Visits, sales and revenue by weekday and hour, with the busiest three hours outlined. Sample data.
04What they read

Which pages people actually read before they buy.

How far visitors scroll and how long they really read each page: time only counts while the tab is visible and someone is active. Buyers are set against everyone who didn't buy, so you see which pages do the selling. No setup, no new cookie. Pick a page.

Engagement

Last 30 days

Avg. reading time1m 20sAvg. scroll63%Read to the end22%
Fig. 5Scroll depth and reading time per page, buyers against everyone else. Sample data.
05Path to purchase

How long it takes to buy, and who closes the sale.

Every customer, followed back from their first purchase to their first visit: how many days and visits it took, the source that found them next to the source credited with the sale, and the pages they saw before paying. X finds them, Google closes it? Now you'll know. Hover a flow.

Median time to buy2.4 daysfrom their first visit
Median visits3 visitsbefore paying
Buy on the first visit29%62 of 214
Pages before buying5median
Brought them inCredited with the sale
Time from first visit to purchase
Pages they saw before paying
Fig. 6Path to purchase on the Revenue page. Sample data.
06Readable Direct

No more mystery "Direct".

Most tools dump a big share of traffic into Direct. DataMate splits it into what actually happened, and names the in-app browsers that hide where a visit came from. Hover a row.

InstagramTikTokRedditTelegramXGoogle app
Fig. 7Direct traffic, split into typed, shared link, checkout return and in-app browsers.
07Lifetime value

Which sources bring customers worth keeping.

Customers are grouped by the source that first brought them, with every renewal, upgrade and repeat purchase added up since. See which channels bring buyers who stay.

Lifetime value by first source

Customers acquired in the last 90 days

SourceCustomersLifetime revenueAvg. valueRenewalsRepeat
news.ycombinator.com41$6,150$150$2,31022%
x.com96$9,408$98$2,95014%
google.com73$6,716$92$1,87011%
chatgpt.com28$2,380$85$6109%
reddit.com37$1,813$49$2405%
Fig. 8Lifetime revenue per source, renewals included. Sample data.
08Realtime

Who is on your site right now.

See pages and sources for visitors active in the last five minutes. Click a sample visitor to explore the illustrated map.

Realtime
visitors in the last 5 min
9
Visitors
Fig. 9Illustrative live activity with simulated visitors. Land boundaries from Natural Earth.
09Alerts

Get a ping when traffic takes off.

Connect Telegram for attributed sale notifications and traffic spike alerts.

DataMate botbot · online
💰 Sale on example.com
$49.00 via stripe · x.com14:02
🚀 Traffic spike on example.com
news.ycombinator.com sent 142 visitors in the last completed hour.14:20
💰

Every sale, with its source

See the payment amount, provider and credited source.

🚀

Spike alerts

Compare each completed hour with the same hour in the preceding week.

Fig. 10Example Telegram notifications for attributed sales and traffic spikes.
10AI agents & API

Ask your AI which post made you money.

Every install has a built-in MCP server. Connect Claude Code, Cursor, VS Code, Codex or Windsurf with one command and ask about traffic, revenue, sales and buyer journeys in plain English: the agent reads your own numbers, live. The same data is in your terminal and behind read-only API keys, with --json for scripts. Pick a question.

Claude Codedatamate · sample session
MCP
Terminal

      
Works withClaude CodeCursorCodexCopilotWindsurf
Fig. 11Claude Code reading a sample site through DataMate's MCP server, and the same numbers in the terminal. Set it up.
11Setup

Install the tracker and connect payments.

Copy the site-specific tracker after adding your website. Confirm the first visit in Realtime, then configure a supported payment provider.

01

Add your site

Enter your website name and domain.

02

Paste one tag

Or copy the AI prompt. Route changes are tracked.

03

Connect payments

Connect Stripe, Polar, Dodo or Creem using a signed webhook.


      
Example connection checkOpen Realtime on your installation to confirm a visit.
Fig. 12Example tracker setups for HTML and Next.js, plus checkout metadata.
12Self-hosting

Run the dashboard and keep the data.

Run DataMate on a Node.js host or in Docker. A persistent SQLite database keeps visits, payments and settings across restarts.

Terminal
$ docker compose up -d --build
Your hosting accountPersistent database storage
⚡Node serverDashboard · API · script
🗄️SQLiteVisitors · sales · goals
⏱️AlertsTelegram notifications
🌍 Your visitors Payment webhooks Telegram
  • Deploy on your own Node or Docker host
  • Separate website settings and reporting keys
  • Back up your database before updating
Fig. 13Example deployment using Docker Compose with persistent storage.
13Get DataMate

Try the dashboard or run your own instance.

Self-hosted
DataMate

Deploy on infrastructure you control and connect your real website.

  • Separate websites and reporting keys
  • Signed payment webhooks
  • Persistent SQLite, backups and historical order import
  • Read-only MCP and REST reporting

Open installation guide
Live demo
Free preview

Explore a read-only sample dashboard before configuring an installation.

  • Traffic and revenue reports
  • Date filters, Sales and Realtime
  • Checkout funnel and purchase paths
Open live dashboard
14FAQ

Questions

What does self-hosted mean?

The dashboard, tracker and database run on hosting you control. Use a persistent disk for real analytics data.

Which payment providers work?

Stripe, Polar, Dodo Payments and Creem. See the payments guide for setup and supported events.

How do I track my website?

Add the website in your dashboard, copy its tracker tag and paste it into the head of the pages you want to measure.

Can I use it from an AI client?

Yes. Create a site-scoped, read-only key and connect a compatible MCP client. MCP setup.

Does the public demo use real customer data?

The demo uses a sample site and sample orders. It is read-only.

See which visits lead to sales.