Aller au contenu
snorklee
Produit Vue d'ensemble Trafic IA Analytics Tarifs Manifeste Documentation Contact Connexion Essai gratuit 7 jours

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.

  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. If you want self-host mode, enable the option: WordPress will serve /js/flow.js and forward /api/event, /api/ping to Snorklee.
  6. 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”):

Snorklee menu in the WordPress admin sidebar

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

Snorklee plugin settings: site domain, dashboard URL and self-host mode

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

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 snippet directly into your theme's <head>.

  1. In WordPress: Appearance → Theme File Editor.
  2. Pick header.php in the right column.
  3. Paste your snippet 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 unlisted scripts. snorklee's default mode is designed to support audience measurement without a dedicated banner, see Compliance.