Installation
Nuxt
Install Talivia in a Nuxt app.
Use Nuxt's global app head so the tracker loads on every route.
Add the script
Open nuxt.config.ts and add the Talivia script to app.head.script.
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.