Skip to main content
To add tinyanalytics through Google Tag Manager (GTM), create a Custom HTML tag containing the tracking snippet and fire it on all pages. This keeps the install in your GTM container, so you don’t touch your site’s code.

Before you start

  • A tinyanalytics site. If you don’t have one yet, follow the Quickstart.
  • Your snippet from Settings → Tracking in your dashboard.
  • GTM already installed on your site, with a container you can edit.

Create a Custom HTML tag

1

Add a new Custom HTML tag

In your GTM workspace, go to Tags → New, and choose the Custom HTML tag type.
2

Paste the snippet

Paste your tinyanalytics snippet as the tag’s HTML:
3

Trigger it on all pages

Set the tag’s trigger to All Pages so it loads everywhere on your site.
4

Submit and publish

Save the tag, then Submit and Publish your container. The tag is live once the container is published.
Replace YOUR_SITE_ID with your real site ID, and copy the full snippet from Settings → Tracking if you’ve toggled any options.
If you use GTM’s consent settings, make sure the tag is allowed to fire — a tag blocked by consent won’t load tinyanalytics. Core anonymous analytics uses no cookies or stored browser ID, but optional features can use browser storage. See Privacy & GDPR when configuring consent.

Verify

Use GTM Preview to confirm the tag fires, then open your site and check Realtime in your dashboard for your visit. See Verify your setup for the full check.
Your install is working when the tag fires in GTM Preview and your own visit appears in Realtime in your dashboard.

Install on any platform

The universal method and other platforms.

How tinyanalytics works

Why cookieless tracking simplifies consent.

Configure the tracking script

Every data-* option you can set.

Verify your setup

Confirm tracking works.