Skip to main content
The TinyTrack tracking script is a single async tag that weighs under 1 KB — small enough that it will never affect your page speed or Lighthouse score. Drop it once into your site’s <head> and TinyTrack immediately begins recording pageviews, unique visitors, and any custom events you choose to instrument.

Basic Installation

Paste the following snippet inside the <head> element of every page you want to track:
Attribute breakdown:
Find your exact snippet — with the correct data-site value pre-filled — in the TinyTrack dashboard under your site’s Settings.

Framework-Specific Examples

Verifying Installation

After adding the snippet, confirm it is firing correctly in three steps:
1

Open your TinyTrack dashboard

Log in at tinytrack.io and navigate to the property that matches your data-site value.
2

Visit your live site

Open your website in a browser tab. Load at least one page — TinyTrack fires a pageview event on every full page load.
3

Check the live count

Return to the dashboard. The Live counter in the top bar updates in real time — you should see your visit appear within a few seconds. If the real-time counter increments, your script is installed correctly.
You can also open your browser’s Network tab and filter for t.js to confirm the script loads with a 200 status code, and watch for a request to cdn.tinytrack.io when the pageview fires.
Do not add the script to localhost without setting data-site to your actual domain, or events will be attributed incorrectly. Use your production domain as the data-site value at all times, even during local development.