Skip to main content

Vue 3

The simplest approach is to add the script directly to your index.html. It will load on every page of your app.
index.html
If you need to load the widget programmatically — for example, based on a condition — you can inject it in App.vue using onMounted:
App.vue

Nuxt 3

Use useHead in app.vue to inject the script globally across all pages:
app.vue
Alternatively, configure it in nuxt.config.ts to apply it site-wide without touching app.vue:
nuxt.config.ts