Skip to content
← 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"
      src="https://js.ciphera.net/script.js"
    />,
  ])
}

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