Aller au contenu
snorklee
Trafic IA Analytics Tarifs Manifeste Documentation Contact Connexion Essai gratuit 14 jours

WordPress install

The easiest way: install the official Snorklee Analytics plugin 3.0+. It adds the Snorklee code to all your pages, sees the AI crawlers that JavaScript cannot, offers three modes against script blockers, and checks that everything works — all without touching your theme.

  1. Download the plugin from the Integration tab of the dashboard, WordPress plugin section, or open the Snorklee WordPress plugin page.
  2. In WordPress: Plugins → Add New → Upload Plugin. Select the .zip.
  3. Activate the plugin.
  4. Open Snorklee in wp-admin, verify the site domain and keep the dashboard URL set to https://snorklee.com unless you run a self-hosted instance.
  5. Then choose how the tracker is installed. Three modes, each stating its cost: standard (everything comes from Snorklee), script served by WordPress — recommended: your domain serves /js/flow.js while the measurements go straight from the browser, so nothing is lost — and full relay, where WordPress also passes /api/event and /api/ping through. The relay escapes every blocker, but Snorklee then only sees your server: no country, no region, and unique visitors and traffic sources stop being reliable.
  6. Save, then click Test installation.

Done. The Snorklee code adds itself to the <head> of every public page. In “script served by WordPress” mode it looks like:

<script defer src="/js/flow.js" data-site="yoursite.com" data-api="https://snorklee.com"></script>

What the plugin looks like

After activation, a Snorklee menu appears in the wp-admin sidebar (“Settings” and “Open dashboard”):

Snorklee menu in the WordPress admin sidebar

The settings page groups the site domain, the dashboard URL and the three install modes, each with its cost:

Snorklee plugin settings: site domain, dashboard URL and three install modes

Lower down, Test installation checks your live page, and current status shows the active mode and the code actually in place:

Install verification and current status in the Snorklee plugin

Manual — header.php

If you'd rather not install a plugin (for example because you keep your theme in Git), paste the Snorklee code directly into your theme's <head>.

  1. In WordPress: Appearance → Theme File Editor.
  2. Pick header.php in the right column.
  3. Paste the code right before </head>:
<script defer src="https://snorklee.com/w.js" data-site="yoursite.com"></script>
  1. 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.js and /api/* routes.
  • You don't have a consent plugin blocking scripts it doesn't know about. Snorklee's default mode is built to measure your audience without a dedicated banner, see Compliance.