Install the snippet
One script tag. After you create a site, Install fills in your real key. Pageviews start on the next visit — no cookie banner required.
The snippet
<script defer src="https://getpulseanalytics.com/pulse.js" data-site="YOUR_SITE_KEY"></script>
Paste it on every page, just before </head>. The script is deferred so it never blocks render.
Where to paste
- HTML. Your layout or template, before the closing head tag.
- WordPress. Appearance → Theme File Editor → header.php, or a plugin that injects scripts into the head.
- Webflow. Project Settings → Custom Code → Head Code. Publish the site.
- Framer. Site Settings → Custom Code → Start of <head>.
- Squarespace. Settings → Developer Tools → Code Injection → Header.
- Shopify. Online Store → Themes → Edit code → theme.liquid, before the closing head tag.
SPAs
After init, Pulse hooks pushState, replaceState and popstate. Extra pageviews fire as the route changes. You do not need to call pulse.page() unless you turned auto pageviews off.
Custom events and the full API: JavaScript API.
