Introduction
Welcome to the OpenRevenue docs. Learn how to add privacy-friendly analytics to any website in minutes.
What is OpenRevenue?
OpenRevenue is a lightweight, privacy-friendly web analytics platform. It tracks pageviews, visitors, referrers, countries, devices and more — without marketing cookies, without fingerprinting for ads, and without selling visitor data into an advertising network.
The tracker may use a first-party visitor or session identifier so returning visits can be measured. You remain responsible for privacy notices and any consent rules that apply to your site and jurisdiction.
How it works
Add the script
Paste one script tag into your site. No npm install, no configuration, no marketing cookies.
Data is collected
Every pageview is captured server-side and enriched with geo and device data in real time.
View your dashboard
Open your OpenRevenue dashboard to see traffic, sources, countries, and realtime visitors.
Quick start
The fastest way to get started is to add the script tag directly to your HTML. Replace your-project-id with the ID from your dashboard.
<body> <script src="https://api.openrevenue.com/tracker.js" data-site="your-project-id" defer ></script></body><body> <script src="https://api.openrevenue.com/tracker.js" data-site="your-project-id" defer ></script></body>Next steps
HTML
Plain script tag for any site
Next.js
App Router & Pages Router setup
React
useEffect or index.html approach
Vue.js
Plugin or index.html
Realtime
How active visitors are counted
Custom events
Track signups, downloads and actions
Funnels
Measure conversion and drop-off across steps
Revenue integrations
Attribute real revenue with Polar or RevenueCat
Integrations
Search Console keywords and GA4 history import
Visitors
Anonymous visitor profiles and sessions
Public stats
Share a read-only public dashboard
Widgets
Embed live analytics on your own site
Account API
Manage projects and API keys
MCP
Connect Cursor or Claude to your analytics
Project API
Query stats, pages, referrers and more