Skip to content
← All integrations

React

Verified

JavaScript Frameworks · Script tag

Integrate Pulse with any React SPA (Create React App, Vite, etc).

First-class, hand-verified install path (script tag or official plugin).

public/index.html

<script defer data-domain="example.com" src="https://js.ciphera.net/script.js"></script>

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

01 · React + Pulse

Why cookieless analytics fits React

A React SPA — Create React App, Vite, or any client-rendered setup — already ships a meaningful JavaScript bundle, so every extra kilobyte counts. Pulse’s script is under three kilobytes loaded from index.html, entirely outside your component tree, and it records SPA route changes through the History API without you writing a useEffect for it. There is no analytics provider to thread through context and no re-render cost.

Cookieless also means there is no client-side cookie state for React to manage. You are not building a consent context, persisting an accept/decline flag, or conditionally mounting a banner — all of which are fiddly to get right in a single-page app where the first paint matters. Pulse collects no personal data and needs no consent, so the SPA just… reports pageviews.

How cookieless analytics works