Documentation

Install Aobex Analytics

Aobex Analytics is a privacy-friendly way to see how people use your site. A script under 2 KB records page views and optional custom events, without cookies or local storage, and without storing anyone’s IP address. It is included with Pro.

1. Add your site

Sign in, open Analytics, and add the domain people type in the address bar, such as example.com. The www and bare versions of the same domain both count. You’ll get a one-line snippet with your site ID.

2. Paste the snippet

Put this just before the closing head tag on every page you want to count, including your site template or tag manager:

<script defer data-site="YOUR_SITE_ID" src="https://aobex.com/js/a.js"></script>

The script figures out the ingest URL from its own address, so the same tag works on production and staging as long as the page’s host matches the domain you registered (or its www variant).

Single-page apps

The script already watches pushState, replaceState and popstate, so client-side navigations are counted as new page views. You do not need to call anything on route changes.

Do Not Track

By default the script honors the browser’s Do Not Track setting and stays silent when it is on. To count those visits anyway, add data-dnt="false":

<script defer data-site="YOUR_SITE_ID" data-dnt="false" src="https://aobex.com/js/a.js"></script>

3. Optional custom events

To record a named action, such as a signup or a download, call:

aobex('event', 'signup')

Names should be short, lowercase, and use only letters, numbers, underscores, colons or dashes (for example signup, download, video:play). If you call this before the script has loaded, queue the calls:

<script>
window.aobex = window.aobex || function () { (aobex.q = aobex.q || []).push(arguments) }
aobex('event', 'signup')
</script>

What is collected

Known bots and crawlers are ignored. Events are kept for the history period on your plan (90 days on Pro) and then deleted.

4. Confirm it is working

Open your site in a regular browser (not a crawler), then check Analytics in Aobex. Totals refresh throughout the day. If nothing appears, confirm the domain matches, Do Not Track is off (or data-dnt="false" is set), and your plan is Pro.

Start free, then upgrade to Pro · Privacy Policy