# Reveata > Web analytics that shows which traffic turns into revenue. Reveata is web analytics built around revenue. A small script records pageviews, traffic sources, campaigns and the goals you choose, with realtime visitors, funnels, visitor profiles, alerts and weekly reports. Crawlers and AI agents are labelled and stored apart, so they never count as visitors. Attribution is revenue-first: Reveata connects to Stripe, Polar or Dodo Payments, or takes payments from your backend through the Payments API, and matches every payment to the visitor who paid, so each channel, page and campaign shows the money it brought in. - Primary website: https://reveata.com - Documentation: https://reveata.com/docs (every page also as Markdown at https://reveata.com/docs/.md) - llms.txt: https://reveata.com/llms.txt - Full documentation in one file: https://reveata.com/llms-full.txt ## Introduction Source: https://reveata.com/docs/introduction > What Reveata measures, how it counts visitors and sessions, and where to start. Reveata is web analytics built around revenue. A small script records pageviews and the goals you choose, your payment provider tells us about payments, and Reveata links the two so every channel, page and campaign shows the money it brought in. ### Start here 1. [Install the script](https://reveata.com/docs/install-the-script) on your website. 2. [Check that it works](https://reveata.com/docs/verify-your-installation). 3. [Track goals](https://reveata.com/docs/custom-goals) such as signups and checkouts. 4. [Connect a payment provider](https://reveata.com/docs/connect-a-payment-provider) to see revenue by source. 5. [Invite your team](https://reveata.com/docs/team-and-roles) and set up [alerts](https://reveata.com/docs/alerts) and [weekly reports](https://reveata.com/docs/weekly-reports). ### How Reveata counts | Term | What it means | | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Website | One root domain you track. Its subdomains are counted with it. You can add other root domains to the same website. | | Tracking id | The public `ws_…` id in your snippet. It tells us which website a visit belongs to. It is not a secret. | | Visitor | A browser that visited your site. By default a first-party cookie keeps the same id for up to 400 days. In cookieless mode a daily-rotating hash is used instead. | | Session | One visit. A session ends after 30 minutes without activity. | | Event | A pageview, a goal or a payment. Your plan’s monthly allowance counts events across all the websites you own. | | Channel | Where a session came from, such as search, social, referral, email, paid or direct, derived from the referrer, UTM tags and ad click ids. | | Goal | A named action you track, such as `signup` or `checkout`. | | Bounce rate | Visits that viewed one page and did nothing else (no goal they triggered, outbound link click or payment; reaching a page-visit goal page alone is not enough), out of all visits. For a page, out of the visits that started on that page. | | Goal conversion rate | Visitors who completed a goal, out of all visitors. With a goal filter, still out of all visitors (your other filters apply). | | Bot hit | A request from a crawler or AI agent. Bot hits are stored separately and never counted as visitors. | Report days follow the timezone you choose for each website, and revenue is shown in the website’s currency. ### What runs where - The **tracking script** runs in your visitors’ browsers and sends small JSON requests to `/api/collect`. - **Payments** reach Reveata from your provider (webhooks and periodic sync) or from your own server through the [API](https://reveata.com/docs/api-and-cli). They never come from the browser. - The **dashboard**, the **API**, the **CLI** and the **MCP server** read the same numbers. --- ## Import your data Source: https://reveata.com/docs/import-your-data > Bring your history from Google Analytics, Plausible, Fathom, Umami or another Reveata website, so your charts start before you installed Reveata. You can import the history of your website from another analytics tool, so your charts and reports start before the day you installed Reveata. Open **Settings → General → Import data** (website admins can import), pick where the data comes from and follow the steps shown there. Reveata never counts a day twice. A day that already has Reveata data keeps Reveata's own numbers, and the imported numbers for that day are left out. If you import the same days again, or from a second tool, the newer import replaces the older one for those days. ### Two kinds of imports - **Events** (Google Analytics 4 BigQuery export, Umami, Reveata exports): every page view and event is imported, with its visit and visitor. These visits work like the ones Reveata collects: every report, filter and visitor profile includes them. - **Daily totals** (Google Analytics 4 through Google, Plausible, Fathom): these tools only export daily numbers per page, source, country and so on, not single visits. Reveata stores them as imported daily totals and adds them to your charts, overview and breakdowns for those days. They show for whole days, weeks and months, unfiltered or with one filter (for example one country). Hourly charts, visitor profiles, funnels and combined filters only use data Reveata collected. Unique visitors over several imported days are the sum of each day's visitors. You can follow every import in the list under the form: how far it is, what was imported, and notes about rows that were skipped. A daily totals import can be removed again with **Remove data**. Files can be up to 500 MB. Zip and gzip files are read as they are, no need to unpack them. ### Google Analytics 4 1. Choose **Google Analytics 4 (connect Google)** and click **Connect Google**. Sign in with a Google account that can see the property. Reveata asks for read-only access (`analytics.readonly`), so it can read your reports but not change anything. 2. Pick the property and how much history to import (one to five years). 3. Click **Start import**. Reveata reads daily totals through the Google Analytics Data API, one month at a time, newest first: visitors, sessions, pageviews, bounces (sessions that were not engaged) and session duration, by day, source and medium (turned into Reveata channels), campaign, page, landing page, country, device, browser, operating system, and events (as goals). Page views, scrolls and clicks are not imported as goals. Google limits how much each property can read per hour and per day. When the limit is close, the import pauses and continues on its own once Google allows it; the list shows when. Yesterday is the newest day imported; today is left to Reveata. You can disconnect Google afterwards with **Disconnect Google**. The imported data stays. ### Google Analytics 4 BigQuery export If your property is linked to BigQuery, you can import every single event instead of daily totals. 1. In Google Analytics, link the property to BigQuery (**Admin → Product links → BigQuery links**). Google only exports days after the link was made. 2. In BigQuery, export the `events_*` tables as newline-delimited JSON and download the files. 3. Choose **Google Analytics 4 BigQuery export** and upload one file at a time. Page views become page views, `scroll` events scrolls, outbound clicks external links and other events goals with their parameters. Visits are built from `user_pseudo_id` and `ga_session_id`, the channel from the source and medium, and countries are turned into country codes. Days that already have other visits in Reveata are skipped. Revenue from Google Analytics is not imported: connect your payment provider instead. ### Plausible 1. In Plausible, open **Site settings → Imports & Exports** and click **Export data**. Plausible emails you a link to a zip file. 2. Choose **Plausible CSV export** and upload the zip as it is. Reveata reads these files of the zip: `imported_visitors`, `imported_sources`, `imported_pages`, `imported_entry_pages`, `imported_exit_pages`, `imported_custom_events`, `imported_locations`, `imported_devices`, `imported_browsers` and `imported_operating_systems`. Custom properties are not imported, and neither are Plausible's own outbound link and file download events. Regions and cities are not imported (Plausible exports them as codes); countries are. You can also upload one of the CSV files on its own. ### Fathom Fathom exports one CSV per breakdown. 1. In Fathom, click the download icon on the dashboard and choose **Custom export** (or go to **Settings → your site → Exports → New export**). 2. Pick **Pageviews**, the date range, grouping **Daily** and every metric (pageviews, visitors, visits, bounce rate, average time on site). 3. Export once with no dimension for the site totals, then once for each breakdown you want: Page, Referrer, Country, Device type, Browser, Operating system or UTM parameters (Fathom puts all five UTM columns in one file; that is fine). For goals, export **Events** with the event name and both completion counts. 4. Choose **Fathom CSV export** and upload each file, or one zip with all of them. Each file adds its breakdown to the days it covers, so you can upload them in any order. Bounces and time on site are only imported when the file has a visits column. ### Umami 1. In Umami, open **Settings → Data** and click **Export**. Umami emails you a link to your data. 2. Choose **Umami data export** and upload the file as you received it (CSV, gzip or zip). Page views and custom events are imported as events, with their visit (`visit_id`) and visitor (`session_id`), referrer, UTM tags, ad click ids, country, device, browser and operating system. The channel is decided by Reveata's own rules. Days that already have other visits in Reveata are skipped. ### Reveata exports To move data between two Reveata websites, export the events of the first one (**Danger zone → Export all data**, or `POST /api/app/websites/:siteId/exports` with `format: json`) and import the file into the other with **Reveata events export**. Visits already on the website are skipped, so you can import the same file twice without counting anything twice. Payments come from your payment provider and are not imported from files. ### If an import stops An import that stops halfway (for example while Reveata is updated) continues by itself where it stopped, without writing anything twice. If an import fails, the list shows why, and anything it wrote is removed: the days an earlier import covered keep that import's numbers. Fix the file and upload it again. --- ## Switch from Plausible Source: https://reveata.com/docs/switch-from-plausible > Keep Plausible's script and point it at Reveata, change the Stats API base URL and token, and see what maps and what doesn't. Reveata accepts Plausible's event endpoint and the common parts of its Stats API v1. You can switch without changing your tracking code: point Plausible's script at Reveata, and your reports start filling in. Bring your history with [Import your data](https://reveata.com/docs/import-your-data). ### 1. Add your website to Reveata Add the website in the dashboard with the same domain you use in Plausible (the `data-domain` of your script). Events find their website by this domain. Events for a subdomain (`blog.example.com`) or for one of the website's [additional domains](https://reveata.com/docs/cross-domain) reach the same website. ### 2. Point Plausible's script at Reveata Keep Plausible's script where you load it today, and send its events to Reveata's `/api/event`. With the classic script, add `data-api`: ```html ``` With the newer script that you start with `plausible.init()`, set `endpoint`: ```html ``` Server-side code that posts to Plausible's Events API only needs the new address: `POST https://reveata.com/api/event` with the same JSON body, `User-Agent` and `X-Forwarded-For` headers. Reveata answers `202 ok` like Plausible. `https://reveata.com/js/script.js` is Reveata's own script, not Plausible's. You can [switch to it](https://reveata.com/docs/install-the-script) later for features Plausible's script does not have, such as payment matching and visitor profiles. #### How events are recorded - `pageview` is a page view; any other name is a [goal](https://reveata.com/docs/custom-goals), with its custom properties (`p`, as an object or a JSON string). Goal names are stored the way Reveata writes them: `Sign Up` becomes `sign_up`. - Plausible's built-in events map to Reveata's: `Outbound Link: Click` and `Cloaked Link: Click` are outbound links, `File Download` is the `file_download` goal, `Form: Submission` is `form_submit`, and `404` is the broken link goal. - `engagement` events add time on page and scroll depth to the page. - Plausible's script sends no visitor id, so visitors are counted like [cookieless mode](https://reveata.com/docs/privacy-and-cookies): a daily anonymous hash of the address and browser, made on Reveata's server. - Every check of Reveata's own collector applies: bot filtering, the page and `Origin` must belong to the website, [exclusions](https://reveata.com/docs/exclusions), rate limits and your plan's usage. - An event for a domain that is not a Reveata website gets `202 ok` and is not stored. - In hash mode (`h: 1`) `#/route` addresses count as separate pages, as with [hash routes](https://reveata.com/docs/hash-routes); otherwise the part after `#` is ignored. #### What is not recorded - **Revenue (`$`)** is ignored. Reveata records revenue from your [payment provider](https://reveata.com/docs/connect-a-payment-provider), matched to the visitor, not from amounts the browser sends. - `i` (non-interactive events) is ignored: every goal counts as an interaction. - When `d` lists several domains, the event is recorded once, for the first one that is a Reveata website. ### 3. Change the Stats API base URL and token Create an [account access token](https://reveata.com/docs/api-introduction) with the `analytics:read` permission (or use a website API key), then change two things in your scripts: | Plausible | Reveata | | --------------------------------------------------- | ------------------------------------------- | | `https://plausible.io/api/v1/stats/…` | `https://reveata.com/api/v1/stats/…` | | `Authorization: Bearer ` | `Authorization: Bearer ` | ```bash curl "https://reveata.com/api/v1/stats/aggregate?site_id=example.com&period=30d&metrics=visitors,pageviews,bounce_rate" \ -H "Authorization: Bearer $REVEATA_TOKEN" ``` `site_id` is the website's domain. The endpoints and response shapes are Plausible's: | Endpoint | Answer | | ----------------------------------- | -------------------------------------------------------------- | | `GET /api/v1/stats/aggregate` | `{ "results": { "visitors": { "value": 1200 } } }`, with `change` when `compare=previous_period` | | `GET /api/v1/stats/timeseries` | `{ "results": [{ "date": "2026-11-01", "visitors": 40 }] }` | | `GET /api/v1/stats/breakdown` | `{ "results": [{ "page": "/", "visitors": 300 }] }` | | `GET /api/v1/stats/realtime/visitors` | A number: visitors on the site right now | Errors use Reveata's [error format](https://reveata.com/docs/api-introduction): `{ "status": "error", "error": { "code", "message" } }`. #### Periods `day`, `7d`, `28d`, `30d`, `91d`, `month`, `6mo`, `12mo`, `year`, `all` and `custom` (`date=2026-01-01,2026-01-31`), relative to `date` (default today, in the website's timezone) the way Plausible counts them: `7d` is the seven days before `date`, `6mo` and `12mo` are the whole months before `date`'s month. Timeseries `interval` can be `date`, `week`, `month` or `hour`. #### Metrics | Plausible | Reveata | | ----------------- | ---------------------------------------------------------------------------------------------- | | `visitors` | Unique visitors | | `visits` | Sessions | | `pageviews` | Page views | | `views_per_visit` | Page views per session | | `bounce_rate` | Bounce rate, a whole percent | | `visit_duration` | Average session duration in seconds | | `events` | Goal completions. Needs an `event:goal` filter or a breakdown by `event:goal` | | `conversion_rate` | Visitors who completed the goal ÷ all visitors, in percent. Needs an `event:goal` filter or a breakdown by `event:goal` | | `exit_rate` | Share of the page's pageviews that were the last page of the visit, a whole percent. Breakdown by `event:page` only | | `time_on_page` | Average engaged seconds per visit of the page (visits that reported a time). Breakdown by `event:page` only | | `scroll_depth` | Average deepest scroll, a whole percent, over visits of the page that scrolled. Breakdown by `event:page` only | Other metrics (`percentage`, revenue metrics…) answer `400` with the list of supported ones. Page metrics outside a breakdown by `event:page` answer `400` too. `events` without a goal is not supported because Reveata counts page-visit goals as events of their own, so the total would not match Plausible's. #### Properties and filters Breakdowns and filters support `event:page`, `event:hostname`, `event:goal`, `event:props:`, `visit:entry_page`, `visit:exit_page`, `visit:source`, `visit:referrer`, `visit:channel`, `visit:utm_source`, `visit:utm_medium`, `visit:utm_campaign`, `visit:utm_term`, `visit:utm_content`, `visit:device`, `visit:browser`, `visit:os`, `visit:country`, `visit:region` and `visit:city`. Any other property answers `400`. Filters use Plausible's syntax: `filters=visit:country==DE;event:page==/pricing|/plans`. `;` joins filters (AND), `|` separates values (OR), and the operators are `==`, `!=`, `~` (contains) and `!~` (does not contain). A `*` at the start or end of a value is a wildcard (`event:page==/blog/**`); one in the middle is not supported. Good to know: - `visit:referrer` is the referring site's host name (`news.ycombinator.com`), not the full address. - `visit:region` and `visit:city` are names as Reveata stores them, not Plausible's codes. - `event:props:` filters and breakdowns read the properties of page views. - `visit:source` names direct traffic `Direct / None`, as Plausible does. - Breakdowns take `limit` (up to 1000) and `page`. ### 4. Import your history Plausible can export your past data as a zip file, which Reveata imports as daily totals. See [Import your data](https://reveata.com/docs/import-your-data#plausible). --- ## Share and embed dashboards Source: https://reveata.com/docs/share-and-embed > Give people a read-only dashboard with its own link, password and expiry, and embed it on another website. A share link opens a read-only dashboard of one website without signing in: visitors, sources, pages and the live map, plus revenue and goals when you choose. Visitor names and emails are never shown. ### Links **Site settings → General → Public dashboard** turns on the website's main link. Under **Share links**, admins can add more links, for example one for investors with revenue and one for a client without it. Each link has its own: - **What it shows:** revenue, goals, and on the live map, visitor locations (city level) and page paths. - **Show only** (optional): limit the link to one of your saved [segments](https://reveata.com/docs/segments-and-filters), for example one country or the `/docs` section. Every number on the link then matches that segment, the shared page says what it is limited to, and visitors can't remove the limit. A limited link does not share the live map, because live data is not filtered. - **Expiry:** 24 hours to 90 days, or never. An expired link answers like an unknown one. - **Password** (optional): visitors enter it once; the browser stays unlocked for that link for 12 hours. Changing or removing the password signs everyone out of the link. Wrong guesses are rate limited. - **Revoke:** the link stops working at once, also where it is embedded. Revoking the main link turns the public dashboard off. ### Embed a dashboard Turn on **Allow embedding** for a link and list the sites that may show it (for example `https://blog.example.com` or `https://*.example.com`), or allow any site. The link's settings then show an `