Installation
Nuxt
Install Talivia in a Nuxt app.
Use Nuxt's global app head so the tracker loads on every route.
Copy the complete snippet from Settings -> Tracking. The examples below focus on framework placement. Keep generated attributes such as
data-domain in the installed snippet. See Tracker configuration for every option and Subdomain tracking when the same visitor moves between subdomains.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.