Installation guides

Install the tracking script on any website

Paste the snippet in the <head> of every page of any HTML website, see what supr-website-id and supr-domain do, and check that visits arrive.

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.

Paste the snippet inside the <head> of every page, before </head>. On a site with a shared header or template, that's one place.

index.html
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>My website</title>
    <script
      defer
      supr-website-id="YOUR_WEBSITE_ID"
      supr-domain="yourdomain.com"
      src="https://supranalytics.app/js/script.js"
    ></script>
  </head>
  <body>…</body>
</html>
  • supr-website-id tells SuprAnalytics which website the visits belong to.
  • supr-domain is your main domain: the visitor cookie is set on it, so www., app. and other subdomains count as one visitor.
  • Every other option is in Script configuration.

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