Menu

Installation

Add a website and install the tracking script.

1. Add your website

Sign in, open Websites and choose Add website. Enter the domain (for example example.com) and the time zone your reports should use. Subdomains such as www. or docs. count towards the same website.

2. Add the script

Copy the snippet from the website's Settings and put it in the <head> of every page:

html
<script defer src="https://analytics.example.com/script.js" data-site="YOUR_SITE_ID"></script>

Page views appear within seconds. Single-page apps work without changes: client-side navigation through history.pushState is counted as a page view.

3. Check it works

Open your site in a normal browser window, then look at current visitors on the website's report. Automated browsers (Playwright, Puppeteer, headless Chrome) are ignored on purpose.

Exclude your own visits

Run this once in the browser console on your own site:

js
localStorage.oxidt_ignore = "true";

That browser is no longer counted. Remove the entry to be counted again.

Options

Attribute Meaning
data-site Your website's id (required).
data-api A different endpoint for events, for example when you proxy /api/track through your own domain.