Skip to main content
To add tinyanalytics to a Jekyll site, place the tracking snippet in the <head> include so it renders on every page.

Before you start

  • A tinyanalytics site. If you don’t have one yet, follow the Quickstart.
  • Your snippet from Settings → Tracking in your dashboard.

Add the snippet to your head include

Add the tag inside _includes/head.html (used by the default Minima theme). If your theme has no head include, add it to the <head> of _layouts/default.html:
_includes/head.html
If your theme is installed as a gem, copy its _includes/head.html into your own _includes/ before editing so theme updates don’t overwrite your change. Replace YOUR_SITE_ID with your real site ID.

Verify

Build or deploy your site, open it in a browser, then check Realtime in your dashboard for your visit. See Verify your setup for the full check.
Your install is working when your own visit appears in Realtime in your dashboard.

Install on Hugo

Another static-site generator.

Configure the tracking script

Every data-* option you can set.

Track custom events

Measure clicks and downloads.

Verify your setup

Confirm tracking works.