--- title: "Astro" description: "Integrate Pulse analytics with Astro. Add the script to your base layout for all pages." category: "framework" brandColor: "#BC52EE" officialUrl: "https://docs.astro.build" relatedIds: ["svelte", "hugo", "eleventy"] date: "2026-03-28" --- Add the Pulse script to your base layout so it's included on every page of your Astro site. --- ## Add to your base layout Place the Pulse script in the `` of your shared layout component. ```html filename="src/layouts/BaseLayout.astro" --- interface Props { title: string } const { title } = Astro.props --- {title} ``` If you're using Astro's View Transitions, the script will persist across navigations by default since it's in the ``. For more details, see the [Astro scripts docs](https://docs.astro.build/en/guides/client-side-scripts/).