Back to Integrations

Qwik Integration

Add the Pulse script to your root entry component so it loads on every page.


Add to src/root.tsx

In Qwik, add the Pulse script to the <head> section of your root component.

src/root.tsx
import { component$ } from '@builder.io/qwik'
import { QwikCityProvider, RouterOutlet } from '@builder.io/qwik-city'

export default component$(() => {
  return (
    <QwikCityProvider>
      <head>
        <meta charSet="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <script
          defer
          data-domain="your-site.com"
          src="https://pulse.ciphera.net/script.js"
        />
      </head>
      <body>
        <RouterOutlet />
      </body>
    </QwikCityProvider>
  )
})

For more details, see the Qwik docs.

Related Integrations: React, Solid.js, Astro