# Nuxt (https://talivia.com/docs/installation-guides/nuxt)



Use Nuxt's global app head so the tracker loads on every route.




## Add the script [#add-the-script]

Open `nuxt.config.ts` and add the Talivia script to `app.head.script`.

```ts
export default defineNuxtConfig({
  app: {
    head: {
      script: [
        {
          src: 'https://talivia.com/script.js',
          defer: true,
          'data-website-id': 'YOUR_WEBSITE_ID',
        },
      ],
    },
  },
});
```

Replace the website ID. Copy it from Talivia Settings -> Tracking for this Nuxt website.

Run the app, open a public route, and verify the new session in Talivia.
