examples/static-html, which runs in the browser test matrix.
Where the tag goes
Paste the tag from the console into the<head> of every page. In the example, the build replaces
the comment <!-- tracker --> with the tag (it does so only so that tests can use their own site
id); on your site the tag itself stands there:
#details) is not a pageview.
Counting clicks
Any element with adata-umami-event attribute sends an event of that name when it is clicked;
each data-umami-event-<key> attribute adds one data entry:
umami.track(). Keep page code in a file of its own if your site has a
content security policy:
What the browser tests check
In Chromium, Firefox and WebKit: one pageview per full load, no pageview for an anchor jump, the page title and a same-site referrer as a path, both kinds of custom event, no request at all with Global Privacy Control, the tracker refused when its file was tampered with, and every page served with the content security policy from content-security-policy.md (tests/e2e/specs).