Skip to content
Pulse
← All integrations

Gatsby

Standard

Static Sites & Documentation · Script tag

Add Pulse to your Gatsby site via gatsby-ssr or a plugin.

The universal tag works via a standard head snippet.

gatsby-ssr.js

export const onRenderBody = ({ setHeadComponents }) => {
  setHeadComponents([
    <script key="pulse" defer data-domain="example.com" PULSE_FLAGS src="https://js.ciphera.net/script.js" />,
    PULSE_INTERACTIONS
  ])
}

Set data-domain to the domain you registered in Pulse. Configure feature toggles, SRI, and storage from the install panel in your dashboard.