app/root.tsx.
1
Get your token
Open Traffic in the GEO sidebar. Until the first event arrives the page shows No activity yet with the full install panel: Install the package, Set your token and Add the proxy. The token appears in the Set your token section, and the Copy agent prompt button copies an instruction block you can paste into a coding agent.Install the same project token on every domain the project tracks, and add extra hostnames under Tracked domains in GEO settings.
2
Install the package
3
Set the environment variable
Add the token as
NOTRA_GEO_TOKEN in your site’s environment variables, both locally and at your hosting provider, and never hardcode or commit it.4
Add the tracker
app/root.tsx
app/root.tsx already exports middleware, add geo to that array.React Router 8 always runs middleware. On React Router 7, upgrade to 7.9 or later and turn middleware on:react-router.config.ts
5
Keep the send alive on serverless hosts
Long-running Node servers such as On Vercel, install
react-router-serve or Express need nothing extra. Serverless hosts can stop the function once the response is sent, so pass your host’s waitUntil to let the send finish:@vercel/functions first.6
Deploy and verify
After you deploy your site, the Traffic page switches from the install panel to the dashboard once Notra stores the first AI crawler visit or referral. Crawlers visit on their own schedule, so the first event can take a while on a quiet site.
Next steps
Tracker reference
Options, excluded paths, privacy and token rotation.
Journey tagging
Follow one agent across the pages it reads.