Widgets
View as MarkdownEmbed 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.
On this page
Widgets show a few of your numbers on your own site, docs or launch page. Open Site settings → Widgets, create a widget, adjust it, and paste its embed code.
Widget types
| Widget | Shows |
|---|---|
| Live visitors badge | How many people are on your site right now (active in the last 5 minutes). |
| Revenue badge | Revenue this month, or only that revenue is growing when Show amount is off (the default). |
| Mini chart card | Visitors over the last 30 days as a sparkline, with the total. |
| Now visiting | A small pop-up in the corner with where the latest visitors are (city, country) and the page they are on. Up to 5. |
Each widget has a light or dark theme, a size (small, medium or large), Show branding ("by Reveata") and an on/off switch. Changes apply to every embed at once, without changing the code. A website can have up to 20 widgets.
Embed it
Copy the Embed code and paste it where the widget should appear:
<script defer
src="https://reveata.com/js/widget.js"
data-widget="wg_your_widget_id"></script>The widget appears right after the tag. To place it inside an element instead, add data-target with a CSS selector:
<div id="live-badge"></div>
<script defer src="https://reveata.com/js/widget.js" data-widget="wg_your_widget_id" data-target="#live-badge"></script>Widgets render in their own shadow DOM, so your page's CSS doesn't change them.
Privacy
A widget is addressed by its own random id (wg_…), never by your website id or domain. It only returns totals and, for Now visiting, a city, a country and a page path. No visitor ids, names or emails. Live widgets refresh every 30 seconds; revenue and chart widgets every 5 minutes.
Turning a widget off
Switch it off, or delete it, and every embed stops showing it. Widgets also stop while the website is archived.
Only admins and the owner can create and change widgets. Other members can copy the embed code of existing ones.