Installation guides

Install the tracking script on WordPress

Add the snippet with a header code plugin such as WPCode, or from your child theme's functions.php, and keep caching plugins from delaying it.

Your snippet is in Settings → General of the website (the gear next to its name on the dashboard), with its id and domain filled in. The examples below use YOUR_WEBSITE_ID and yourdomain.com: replace them with yours.

With a plugin (easiest)

  1. Install a header code plugin

    For example WPCode (Insert Headers and Footers): Plugins → Add New, search for it, install and activate.

  2. Paste the snippet in the header

    In Code Snippets → Header & Footer, paste it in Header and save.

    <script
      defer
      supr-website-id="YOUR_WEBSITE_ID"
      supr-domain="yourdomain.com"
      src="https://supranalytics.app/js/script.js"
    ></script>

In your theme

Or add it from your (child) theme's functions.php, so a theme update doesn't remove it:

functions.php
add_action('wp_head', function () { ?>
<script
  defer
  supr-website-id="YOUR_WEBSITE_ID"
  supr-domain="yourdomain.com"
  src="https://supranalytics.app/js/script.js"
></script>
<?php });

Caching plugins sometimes combine or delay scripts: exclude script.js from "delay JavaScript" and "combine JavaScript" options.

Check it works

Open your website in a normal browser window, then the dashboard: the visit shows up within seconds, and the install card on a new website turns into the dashboard by itself. Nothing after a minute? See Not seeing any data.

AI agent or LLM? Read this page as Markdown