Skip to main content
To add tinyanalytics to WordPress, put the tracking snippet in your site’s <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.
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’s header.php, just before the closing </head> tag.
Edit a child theme, not the parent — a theme update will overwrite header.php in the parent theme and remove your snippet. A header code plugin (Option 1) avoids this entirely.

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.

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.