'use client' import { IntegrationGuide } from '@/components/IntegrationGuide' import { CodeBlock } from '@/components/CodeBlock' import { getIntegration } from '@/lib/integrations' import { notFound } from 'next/navigation' export default function GatsbyIntegrationPage() { const integration = getIntegration('gatsby') if (!integration) return notFound() return (

Add Pulse to your Gatsby site using the gatsby-ssr API or the Gatsby Head API.


Method 1: gatsby-ssr.js (Recommended)

Use the onRenderBody API to inject the script into every page's <head>.

{`import React from "react" export const onRenderBody = ({ setHeadComponents }) => { setHeadComponents([