Vue 3
The simplest approach is to add the script directly to yourindex.html. It will load on every page of your app.
index.html
App.vue using onMounted:
App.vue
Nuxt 3
UseuseHead in app.vue to inject the script globally across all pages:
app.vue
nuxt.config.ts to apply it site-wide without touching app.vue:
nuxt.config.ts