Realtime, to the second
Who's online, what they're reading, and where they came from.
A simple Google Analytics alternative: realtime visitors, traffic sources, revenue and JavaScript errors in one dashboard, from a script under 4 KB.
Free up to 5k events a month. No card needed.
Below the chart: top pages and sources, where visitors are, goals, errors, a funnel and the latest visitors, for the same demo store.
The proxy is optional. It's also how you catch the visitors other tools miss.
Paste it into your <head>. Pageviews and errors start coming in.
<script
defer
data-website-id="your-site-id"
src="https://usedatasense.com/js/script.js"
></script>Two rewrites, and ad blockers see a first-party request.
{ source: "/_ds/js/script.js", destination: "https://usedatasense.com/js/script.js" }
{ source: "/_ds/api/e", destination: "https://usedatasense.com/api/e" }Visitors show up in about a second. Goals are one line of code.
window.datasense("signup", { plan: "pro" })
<button data-ds-goal="checkout">Buy</button>The basics are covered. These are the parts you'll actually use.
Who's online, what they're reading, and where they came from.
Crashes, failed assets and console.error from real browsers, grouped by page.
Raw events or errors for any date range, as CSV or JSON.
Requests come from your own domain, so uBlock, Brave and private windows still count.
Ad blockers drop requests to known analytics domains. Serve the script from your own domain and there's nothing to block.
Your dashboard fills in your site ID
// next.config.ts
import type { NextConfig } from "next"
const nextConfig: NextConfig = {
async rewrites() {
return [
{ source: "/_ds/js/script.js", destination: "https://usedatasense.com/js/script.js" },
{ source: "/_ds/api/e", destination: "https://usedatasense.com/api/e" },
{ source: "/_ds/api/p", destination: "https://usedatasense.com/api/p" },
// Session replay, if you turn it on
{ source: "/_ds/js/recorder.js", destination: "https://usedatasense.com/js/recorder.js" },
{ source: "/_ds/api/replay", destination: "https://usedatasense.com/api/replay" },
// Forms, if you create any
{ source: "/_ds/js/forms.js", destination: "https://usedatasense.com/js/forms.js" },
{ source: "/_ds/api/forms", destination: "https://usedatasense.com/api/forms" },
]
},
}
export default nextConfig<script
defer
data-website-id="your-site-id"
src="/_ds/js/script.js"
></script>Free up to 5k events a month, no card needed.
For side projects and personal sites.
No card needed.
For products with real traffic.
For high-traffic products and agencies.
Still curious? See the dashboard above.
Add one script tag and watch them arrive: where they came from, what they opened, and what broke.