Skip to main content
For a code-built app, add the script to the document head so it loads once and covers client-side navigation. Copy your snippet from Install the snippet, then:
1

Add it to the document head

In Next.js, add the snippet to the head in app/layout (App Router) or pages/_document (Pages Router). In a plain React app, add it to the <head> of index.html.
2

Confirm it covers every route

Because it lives in the shared document head, it loads once and stays active across client-side navigation. Deploy, then verify.