Back to Integrations

Nuxt Integration

Configure Pulse analytics in your nuxt.config for a framework-native setup.


Method 1: Nuxt 3

Add the Pulse script via the app.head option in your Nuxt 3 config.

nuxt.config.ts
export default defineNuxtConfig({
  app: {
    head: {
      script: [
        {
          defer: true,
          'data-domain': 'your-site.com',
          src: 'https://pulse.ciphera.net/script.js',
        },
      ],
    },
  },
})

Method 2: Nuxt 2

In Nuxt 2, use the head property in your config.

nuxt.config.js
export default {
  head: {
    script: [
      {
        defer: true,
        'data-domain': 'your-site.com',
        src: 'https://pulse.ciphera.net/script.js',
      },
    ],
  },
}

For more details, see the Nuxt head config docs.

Related Integrations: Vue.js, Next.js, VitePress