<head> so it loads on every page. The easiest way is a headers-and-footers code plugin — no theme editing required. If you’re comfortable with code, you can add it to your theme instead.
Before you start
- A tinyanalytics site. If you don’t have one yet, follow the Quickstart.
- Your snippet from Settings → Tracking in your dashboard.
Option 1: A header code plugin (recommended)
The simplest approach, and it survives theme updates:1
Install a headers-and-footers plugin
From Plugins → Add New, install and activate a plugin that inserts code into your site header (for example, a “headers and footers” or “insert code” plugin).
2
Paste the snippet into the header
In the plugin’s settings, paste your tinyanalytics snippet into the header (
<head>) section and save.Option 2: Your theme’s header
If you’d rather not add a plugin, paste the snippet into your theme’sheader.php, just before the closing </head> tag.
Verify
Open your site 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.
Related
Install on any platform
The universal method and other platforms.
Configure the tracking script
Every
data-* option you can set.Verify your setup
Confirm tracking works.
Track custom events
Measure signups, clicks, and purchases.