Install

Install on plain HTML

One script tag in the head. Works on any site you can edit HTML on.

This is the basic install. Every other platform guide is a variation on this one. If your platform isn't documented yet, you can almost always apply this method by finding where your site renders its <head>.

1. Copy your script tag

Head to your site's settings in the Seena dashboard. You'll find a snippet that looks like:

<script
  src="https://app.seenalabs.io/widget/seena.js"
  data-site-id="YOUR_SITE_ID"
  async
></script>

The data-site-id is generated per site. Never hardcode a different one — that's how you'd accidentally route data to the wrong place.

2. Paste it into your <head>

Open the HTML file(s) that render every page of your site — usually a <head> partial, template, or layout. Paste the script just before the closing </head> tag:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>My Site</title>
    <!-- other head contents -->

    <script
      src="https://app.seenalabs.io/widget/seena.js"
      data-site-id="YOUR_SITE_ID"
      async
    ></script>
  </head>
  <body>
    <!-- ... -->
  </body>
</html>

The async attribute is intentional — it tells the browser to load Seena without blocking the rest of your page. We recommend keeping it.

3. Confirm the dot is live

Open your site in a new window. Then, go back to the Seena dashboard and the state of your site should be flipped from waiting to live.

Stuck in "waiting"?

  • Check the browser console. Errors loading seena.js usually mean a wrong data-site-id or a Content Security Policy (CSP) blocking app.seenalabs.io.
  • Check your CSP. If you send a Content-Security-Policy header, allow script-src 'self' https://app.seenalabs.io and connect-src 'self' https://app.seenalabs.io.
  • Check for ad blockers. Some aggressive privacy extensions block the script. Try a clean profile.

4. See your first session

After you exit your website, i.e., complete your session. Head to the "Analytics" page and a row should appear within a minute of the visit.

5. Choose how visitors opt in

Seena works without cookies for every visitor by default. No device storage happens until a visitor opts in to enhanced analytics. The one exception is Seena's own banner, which stores only the visitor's choice. You choose where that opt-in comes from in the analytics agent's setup, under Visitor consent:

  • Use my cookie banner. Seena reads Google Consent Mode v2, IAB TCF v2.2, OneTrust and Cookiebot automatically and listens for changes. If you use something else, call Seena.consent.grant() and Seena.consent.revoke() from your banner's callback. Both work before the script loads, as long as you call them through the SeenaReady queue:

    <script>
      window.SeenaReady = window.SeenaReady || [];
      function onMyBannerChoice(accepted) {
        window.SeenaReady.push(function () {
          if (accepted) Seena.consent.grant();
          else Seena.consent.revoke();
        });
      }
    </script>
    
  • Use Seena's banner. Seena shows a small banner at the bottom edge of the page, with accept and decline given equal weight. It stores only the visitor's choice. Put a "Privacy" link anywhere on your site that calls Seena.consent.open(), so visitors can change their choice later.

  • Cookie-less only. Seena never asks. Nothing is stored on the visitor's device, and Seena's banner never shows.

On a site that uses your cookie banner, the script tag can carry data-seena-consent="required". It makes Seena start without cookies and wait for your banner. It is optional, and it only makes Seena stricter, never looser. The snippet the dashboard gives you for a site on "Use my cookie banner" includes it. If you installed earlier, Seena still follows your setting without it.

<script
  src="https://app.seenalabs.io/widget/seena.js"
  data-site-id="YOUR_SITE_ID"
  data-seena-consent="required"
  async
></script>

Seena honours Global Privacy Control. For the four consent managers Seena reads automatically, when the browser sends it, a consent the manager stored earlier or granted by default isn't enough, and Seena waits for a fresh choice the visitor makes on that page. If you call Seena.consent.grant() yourself, Seena treats it as the visitor's choice, so your banner should apply Global Privacy Control before it calls. A visitor's earlier Allow on Seena's own banner is remembered even when the browser sends it, because it was an explicit click.

A note on caching

If your site is behind a CDN, changes to your head HTML may be cached for a few minutes. If the data isn't flowing after 5 minutes, clear your CDN cache for HTML responses.

What to do next