Documentation
Install the script, track goals, connect revenue and use the API, CLI and MCP.
Getting started
IntroductionWhat Reveata measures, how it counts visitors and sessions, and where to start.Import your dataBring your history from Google Analytics, Plausible, Fathom, Umami or another Reveata website, so your charts start before you installed Reveata.Switch from PlausibleKeep Plausible's script and point it at Reveata, change the Stats API base URL and token, and see what maps and what doesn't.Share and embed dashboardsGive people a read-only dashboard with its own link, password and expiry, and embed it on another website.
Install
Install the scriptAdd the Reveata snippet to your site and choose the options you need.Frameworks and site buildersWhere to put the snippet in Next.js, React, Vue, SvelteKit, Angular, Astro, Laravel, Django, WordPress, AI app builders and other setups.Verify your installationCheck that pageviews arrive and fix the most common reasons they do not.Install on WebflowAdd Reveata to a Webflow site, serve it from your own subdomain, and count clicks on Webflow buttons and links as goals.Install on FramerAdd Reveata to a Framer site, serve it from your own subdomain, and credit sales to their visits.Install on WixAdd Reveata to a Wix site with Custom Code, serve it from your own subdomain, and credit Wix Stores sales to their visits.Install on SquarespaceAdd Reveata to a Squarespace site with Code Injection, serve it from your own subdomain, and credit Squarespace Commerce orders to their visits from the order confirmation page.Install on GhostAdd Reveata to a Ghost site with code injection, serve it from your own subdomain, and credit paid memberships to their visits.Install on WordPressUse the Reveata plugin for the tracking script and a dashboard widget in wp-admin.Install on Next.jsAdd Reveata to a Next.js app with the script tag or the @reveata/next component.Install on AngularAdd Reveata to an Angular app through src/index.html.Install on NuxtAdd Reveata to a Nuxt app through app.head, with the script tag or the @reveata/next helper.Install on ReactAdd Reveata to a React app built with Vite or Create React App.Install on React RouterAdd Reveata to a React Router app, in framework mode (root.tsx) or as a single-page app.Install on SvelteKitAdd Reveata to a SvelteKit app through src/app.html.Install on VueAdd Reveata to a Vue app built with Vite, with Vue Router in history or hash mode.Install on AstroAdd Reveata to the base layout of an Astro site, proxy it through your own domain, and credit payments to their visits.Install on GatsbyAdd Reveata to a Gatsby site from gatsby-ssr.Install on DocusaurusAdd Reveata to a Docusaurus site with the scripts option.Install with Google Tag ManagerLoad Reveata and send goals with the Reveata tag template.Install on LaravelAdd Reveata to the Blade layout of a Laravel app.Install on a PHP siteAdd Reveata to a PHP site through the header file every page includes.Install on DjangoAdd Reveata to the base template of a Django project.Install on FastAPIAdd Reveata to pages a FastAPI app renders with Jinja2 templates or serves as static files, proxy it through your own domain, and credit payments to their visits.Install on FlaskAdd Reveata to the base Jinja template of a Flask app.Install on ExpressAdd Reveata to pages an Express app serves, proxy the script and events through two routes, and credit payments to their visits.Install with NGINXAdd the Reveata snippet to pages NGINX serves, and proxy the script and events through your own domain with the visitor’s address and your proxy secret.Install with CaddyAdd the Reveata snippet to sites Caddy serves, and proxy the script and events through your own domain with the visitor’s address and your proxy secret.Install on CarrdAdd Reveata to a Carrd site with a hidden Embed element.Install on BubbleAdd Reveata to a Bubble app through its header scripts setting, serve it from your own subdomain, and credit payments to their visits.Install on KajabiAdd Reveata to a Kajabi site and its checkout pages, serve it from your own subdomain, and get Kajabi sales into your revenue.Install on PodiaAdd Reveata to a Podia site through its third-party code settings, serve it from your own subdomain, and credit Podia sales to their visits from the conversion code.Install on BoltAdd Reveata to an app built with Bolt, by prompt or in the code editor.Install on LovableAdd Reveata to an app built with Lovable (TanStack Start or Vite), serve it from your own subdomain, and credit payments to their visits.Install on ReplitAdd Reveata to an app built and deployed on Replit.Install on v0Add Reveata to a Next.js app generated with Vercel v0.npm packagesThe Reveata packages for JavaScript projects, what each one does and how to install it.React Native and Expo appsTrack screens, custom events, identify and revenue in a React Native or Expo app, offline included, and follow people from your website into the app.
Proxy
Managed proxyServe the Reveata script from your own subdomain with one DNS record, so ad blockers miss fewer visits.Proxy through your own serverServe the Reveata script and send events through your own domain with Next.js, Vercel, Netlify, Cloudflare Workers, Nginx, Caddy, Apache, Express, Laravel, WordPress and more.Proxy with plain PHPServe the Reveata script and forward events through two small PHP files, with the visitor's IP and your proxy secret.Proxy with FlaskServe the Reveata script and forward events through two Flask routes, with the visitor's IP and your proxy secret.Proxy with FastAPIServe the Reveata script and forward events through two FastAPI routes, with the visitor's IP and your proxy secret.Proxy with AstroServe the Reveata script and forward events through two Astro endpoints rendered on demand, with the visitor's IP and your proxy secret.Proxy with Firebase HostingServe the Reveata script and forward events through a Cloud Function behind Firebase Hosting rewrites, with your proxy secret.Proxy on DigitalOceanForward the Reveata script and events on DigitalOcean App Platform with a small service component, or on a Droplet with Nginx.Proxy in the Vite dev serverTry the proxied snippet locally with Vite's server.proxy, before you set up the proxy on your production host.
Tracking options
Track subdomainsCount www, app, blog and docs subdomains as one website, tell them apart with the Hostname report, and leave out staging hosts.Cross-domain trackingFollow one visitor from your marketing site to your app or checkout on another root domain, so revenue is credited to the source that started the visit.Hash-based routesCount `/#/settings` style routes as separate pages in single-page apps that route with the URL hash.ExclusionsKeep your own visits, internal IPs, private paths, staging hosts, whole countries and referral spam out of your numbers.UTM tags, ?ref and ad click idsEvery link parameter Reveata reads, how it sets the channel and source of a visit, and where to see campaigns.
Revenue attribution
Revenue attribution guideSet up revenue attribution for your payment provider in about five minutes, with the exact code for your checkout.How revenue attribution worksHow payments are matched to visitors and which channel gets the credit.Connect a payment providerConnect Stripe, Polar or Dodo Payments and pass the visitor id at checkout.Payments APISend payments from your own server when your provider is not supported.Google Search ConsoleImport your Google search keywords and see the revenue Reveata estimates for each one.Thank-you page paymentsLink payments to visitors from the checkout id on your thank-you page, or with reveata('payment'), without ever counting a payment twice.Meta AdsImport Meta ad spend and compare it with the revenue each campaign brought, as return on ad spend.Stripe: connect with a restricted keyConnect Stripe to Reveata with a read-only restricted key, and let Reveata create the webhook or add it yourself.Stripe: Connect with StripeConnect your Stripe account to Reveata in a few clicks with read-only Stripe Connect access, no key to create or paste.Stripe CheckoutCredit Stripe Checkout Sessions created on your server to the visit that led to them, with Next.js, Express or any backend language.Stripe Payment Links and buy buttonsPayment Links, Buy Buttons and Pricing Tables on your pages are credited to their visit with no code, and what happens when a link is opened elsewhere.Stripe Elements and mobile appsCredit PaymentIntents from Stripe Elements, the Payment Element and Stripe's mobile SDKs to their visit through PaymentIntent metadata.PolarConnect Polar with an organization access token or Connect with Polar, set up the webhook, and pass the visitor id in checkout metadata.Dodo PaymentsConnect Dodo Payments with an API key and a webhook signing secret, and pass the visitor id in checkout metadata.Revenue from Ghost membershipsCredit paid Ghost memberships to the visits that led to them, by connecting the Stripe account Ghost uses and identifying signed-in members in your theme.Revenue from KajabiWhat Reveata can and cannot attribute for Kajabi sales, and how to get them into your revenue reports.Revenue from PodiaHow Podia sales can be counted and credited to visits in Reveata, through the buyer's email.Revenue in apps built with AIA ready-made prompt for Lovable, Bolt, v0, Replit or Cursor that finds your checkout code and passes the Reveata visitor id, so payments are credited to their visits.Revenue from EasytoolsCount sales made with Easytools (Easytool) checkouts in Reveata and credit them to visits by email.
Goals and funnels
Custom goalsTrack signups, clicks and other actions with JavaScript or HTML attributes.Identify visitorsLink a visitor to a user of your app so their visits and payments line up.FunnelsLine up the pages and goals you expect visitors to go through and see where they drop off, how long they take and what they spend.JavaScript APIEvery command and method of the tracking script, including payment, reset, decorate and scroll goals with a threshold and delay.Subscription goalsBuilt-in goals for trials, payments, renewals, plan changes, cancellations and refunds, written from your payment provider so funnels and alerts can end at "Paid".Store eventsAdd to cart and checkout started goals, with product and value, for store funnels that end at Paid.
AI assistants
ChatGPTAsk ChatGPT about your traffic, revenue, goals and funnels and get answers with charts.ClaudeConnect Claude (web, desktop, mobile and Claude Code) to Reveata and ask about your traffic and revenue.CursorAdd the Reveata MCP server to Cursor in one click and ask about your analytics while you code.VS Code (GitHub Copilot)Use Reveata in GitHub Copilot agent mode in VS Code through the Reveata MCP server.WindsurfAdd the Reveata MCP server to Windsurf's Cascade.ZedUse Reveata in Zed's agent panel through the Reveata MCP server.Gemini CLIAdd the Reveata MCP server to Gemini CLI and ask about your analytics in the terminal.CodexAdd the Reveata MCP server to OpenAI Codex and ask about your analytics from the terminal.PerplexityConnect Perplexity to Reveata as a custom remote connector.
AI agents and MCP
API introductionBase URL, authentication with site keys and account tokens, permissions, responses, errors, pagination and rate limits of the REST API.API and CLIAuthenticate with the REST API, choose between website keys and account tokens, and use the command-line tool.MCP serverConnect Claude, Cursor or another MCP client to your Reveata data.OAuth referenceEndpoints, client registration, PKCE, scopes, token lifetimes, refresh and revocation of the Reveata OAuth 2.1 server used by MCP clients.ZapierStart Zaps when visitors complete goals, payments arrive or traffic spikes, and send events to Reveata from any app.MakeWatch goal completions, payments and traffic spikes in Make scenarios, and send custom events to Reveata.WebhooksGet a signed POST on your server for new payments, refunds, goal completions, alerts and a daily summary, and verify each one.
CLI
Get started with the CLIInstall the reveata command line tool, sign in with a token, choose a website and get tables or JSON.CLI permissions and rolesWhich token each CLI command needs, the scope it uses and the lowest website role that can run it.reveata sitesList, add and inspect websites, and change their settings, exclusions and attribution from the command line.reveata statsHeadline metrics, time series, breakdowns and new versus returning visitors for any period, from the command line.reveata realtimeSee the visitors on your website right now, with their top pages, countries, referrers and devices.reveata goalsThe goals report from the command line - completions, converting visitors, conversion rate and revenue per goal.reveata funnelsList a website's saved funnels and see visitors, conversion and drop-off for each step.reveata visitorsSearch visitors, open a visitor's profile and list every page, goal and payment in their journey.reveata eventsRecord a custom goal from your server or a script, credited to the visit that led to it.reveata payments, customers and revenueSend payments from your backend, list the payments received and read customer and subscription metrics.reveata botsForward crawler and AI agent requests from an nginx or Apache access log to your bot traffic report.reveata team, keys and tokensInvite people and change their roles, create and revoke website API keys and account access tokens from the command line.reveata alertsCreate, change, test and delete traffic and revenue alerts and scheduled reports, and read their history, from the command line.reveata segments and notesSave filter sets as segments and pin notes to days on the charts from the command line.reveata config and completionSave a default website, see where the CLI reads its settings from, and turn on shell completion for bash, zsh and fish.
Dashboard and reports
Realtime and the live mapWatch visitors arrive on a live map, follow what they do, and replay up to the last 8 hours.Visitors and visitor profilesFind the visitors who paid or completed a goal, and follow each one's journey from their first visit.Periods, Now and pinned rangesPick the dashboard's period, watch the last 30 minutes live with Now, and pin the periods and date ranges you use most so they show first.Ask AIAsk questions about a website in plain language and get answers built only from your Reveata reports, with their sources.Filters and segmentsNarrow every report to one channel, country, campaign or kind of visitor, and save the filters you use often as segments.AlertsGet an email, a Slack message or a Discord message when a payment arrives, traffic spikes or drops, a goal is completed or a new referrer appears.Weekly reportsA Monday email with last week's visitors, revenue, customers and goals, compared with the week before.Public dashboard and share linksShare a read-only dashboard with anyone through a link, choose whether it shows revenue and goals, and set when the link expires.WidgetsEmbed a live visitor badge, a revenue badge, a 30-day chart or a "now visiting" pop-up on any page with one line of code.GitHub commits on the chartConnect GitHub to show each commit to your default branch on the dashboard chart, so you can see which release moved visits, signups and revenue.Likely to buyA purchase-likelihood score for every visitor online, learned from your own website's paying visits, with the reasons behind each score.Watch the buyer with Microsoft ClarityConnect your own Microsoft Clarity project to watch the session recording behind any visit, journey, funnel step or payment, with consent handled and only anonymous ids shared.Retention cohortsSee how many new visitors come back, and how many paying customers pay again, week by week or month by month after their first visit or first payment.User pathsFollow the pages visitors go through in a visit, from the page they entered on or into a page you choose, as a flow diagram with the most common paths.
Team and billing
Team and rolesInvite people to a website, choose what each role can do and decide whether viewers see revenue.Transfer ownershipHand a website and its billing to a teammate or to anyone with an email address.Billing, plans and usagePlans and their limits, how events are counted, what happens when you go over your plan, invoices, tax, and cancelling.Two-factor sign-inAsk for a code from an authenticator app after the email link or Google, keep recovery codes, and require two-factor for everyone on your websites.
Privacy and data
Privacy, cookies and cookieless modeWhat Reveata stores about your visitors, which cookies the script sets and how cookieless mode works.Bot and AI crawler trafficHow Reveata separates crawlers and AI agents from people, and how to manage them with robots.txt.Crawler verificationHow Reveata checks that a visit from Googlebot, GPTBot or ClaudeBot really comes from Google, OpenAI or Anthropic, and what verified, spoofed and unverifiable mean.Forward crawler requestsRecord AI crawlers and other bots that never run JavaScript from your server, with setup guides for Next.js, Cloudflare Workers and Pages, Express, Hono, PHP and WordPress.Import, export and delete website dataDownload every event of a website as CSV, import history from Google Analytics 4 or an earlier export, and delete traffic from a range of days.Visitor data requestsExport or erase everything Reveata holds about one person when they ask to see or delete their data.Export or delete your accountDownload everything Reveata keeps about your account as JSON, or delete the account with its websites and subscription.
Troubleshooting
Content Security PolicyThe exact CSP directives the Reveata script needs, with the extras script, the queue snippet, the managed proxy and your own proxy, plus examples for common servers.Reduce your event usageWhat counts towards your plan's events, what never does, and the settings that lower usage without losing the numbers you need.Why payments are never counted twiceHow Reveata keeps one record per payment when webhooks retry, imports overlap, the browser and your server both report a sale, or a refund arrives.Why events don't show upEvery reason a pageview or goal can be skipped in the browser or dropped by the server, how to see which one applies, and how to fix it.