Nuxt
Declared in nuxt.config.ts, for the whole site.
Add the key to app.head.script
Nuxt injects it into the head of every page, on SSR and on static generation alike.
ts// nuxt.config.ts export default defineNuxtConfig({ app: { head: { script: [ { defer: true, "data-domain": "example.com", src: "https://pisi.to/js/llave.js", }, ], }, }, });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.