Back to Integrations

VitePress Integration

Add the Pulse script via VitePress's head config option.


Configure in .vitepress/config.ts

VitePress lets you inject tags into the <head> of every page via the head array.

.vitepress/config.ts
import { defineConfig } from 'vitepress'

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

For more details, see the VitePress head config docs.

Related Integrations: Docusaurus, Vue.js, Nuxt