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.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.
