Skip to content

Switch from Plausible

View as Markdown

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.

On this page

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.

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 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
<script
  defer
  data-domain="example.com"
  data-api="https://reveata.com/api/event"
  src="https://plausible.io/js/script.js"
></script>

With the newer script that you start with plausible.init(), set endpoint:

html
<script>
  plausible.init({ endpoint: 'https://reveata.com/api/event' });
</script>

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 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, 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: 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, 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; otherwise the part after # is ignored.

What is not recorded

  • Revenue ($) is ignored. Reveata records revenue from your 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 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 <Plausible API key> Authorization: Bearer <dt_pat_… or dt_site_…>
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: { "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:<name>, 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:<name> 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.

Was this helpful?