feat(marketing): report page requests to Notra GEO - #149
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryAdds optional Notra GEO reporting to the marketing site. When configured, the middleware sends crawler and referral analytics in the background without changing the page response. Confidence Score: 5/5No blocking failure remains. The middleware was exercised with tracking disabled, enabled, and with an ingest-network failure; request flow remained unchanged and failed reporting was handled without an unhandled rejection.
What T-Rex did
Reviews (5): Last reviewed commit: "Merge branch 'main' into devin/178838334..." | Re-trigger Greptile |
What Changed
Adds
@usenotra/geotoapps/marketingand a Vercel routing middleware (apps/marketing/middleware.ts) that sends each page request to Notra GEO viacontext.waitUntil, then lets the request through untouched. It uses the framework-agnosticTrackerfrom the package core because the marketing site is Astro deployed as static output on Vercel, so the Next.jsproxy.tsrecipe does not apply here.When
NOTRA_GEO_TOKENis unset the middleware is a no-op. The token is read from the Vercel environment and is not committed..env.exampleis left alone since it documents public identifiers only.Why
Notra GEO gives us AI crawler and AI referral analytics for the public site. The SDK skips asset requests itself and never blocks or throws, so there is no visible effect on visitors.
Checklist
Work done by Devin (Cognition) with Claude.
Link to Devin session: https://app.devin.ai/sessions/9a7438a74bd04ca4ae66e7875e685344
Open in Devin Desktop: https://app.devin.ai/desktop/session/9a7438a74bd04ca4ae66e7875e685344?variant=devin