Skip to content

Nuxt

Declared in nuxt.config.ts, for the whole site.

  1. Add the key to app.head.script

    Nuxt injects it into the head of every page, on SSR and on static generation alike.

    // nuxt.config.ts
    export default defineNuxtConfig({
      app: {
        head: {
          script: [
            {
              defer: true,
              "data-domain": "example.com",
              src: "https://pisi.to/js/llave.js",
            },
          ],
        },
      },
    });
    ts
  2. Build and deploy

    Nuxt router navigations use pushState, so the key counts them by itself.

Check that it works

Open your site in a new tab and watch the dashboard: you should show up under "home right now" in under ten seconds. If you do not, run through the onboarding checklist.