WordPress install
The easiest way: use the official Snorklee Analytics plugin 2.3.4+. It injects the tracker, offers 1st-party self-host mode and verifies the install, without touching your theme.
Recommended — Official plugin
- Download the plugin from the Integration tab of the dashboard, WordPress plugin section, or open the Snorklee WordPress plugin page.
- In WordPress: Plugins → Add New → Upload Plugin. Select the
.zip. - Activate the plugin.
- Open Snorklee in wp-admin, verify the site domain and keep the dashboard URL set to
https://snorklee.comunless you run a self-hosted instance. - If you want self-host mode, enable the option: WordPress will serve
/js/flow.jsand forward/api/event,/api/pingto Snorklee. - Save, then click Test installation.
Done. The snippet is injected into <head> on every public page. In self-host mode it looks like:
<script defer src="/js/flow.js" data-site="yoursite.com"></script>
What the plugin looks like
After activation, a Snorklee menu appears in the wp-admin sidebar (“Settings” and “Open dashboard”):

The settings page groups the site domain, the dashboard URL and the self-host mode (anti-blocker):

Lower down, Test installation runs an HTTP probe and current status shows the active mode and the snippet actually injected:

Manual — header.php
If you'd rather not install a plugin (for example because you keep your theme in Git), paste the snippet directly into your theme's <head>.
- In WordPress: Appearance → Theme File Editor.
- Pick
header.phpin the right column. - Paste your snippet right before
</head>:
<script defer src="https://snorklee.com/w.js" data-site="yoursite.com"></script>
- Click Update File.
Heads up: if you update your theme, your edit will be overwritten. Prefer a child theme or a plugin (e.g. Insert Headers and Footers).
Verify
Follow the Verify the install guide. For WordPress, also check that:
- You're not running an aggressive cache plugin that strips dynamic
<head>content or the/js/flow.jsand/api/*routes. - You don't have a "consent" plugin blocking unlisted scripts. snorklee's default mode is designed to support audience measurement without a dedicated banner, see Compliance.