Overview
Our Next.js middleware integration allows you to add AI SEO tracking capabilities to your Next.js applications with minimal configuration. By leveraging the built-in middleware capabilities of Next.js, you can track AI interactions across your entire site without modifying individual pages. This solution works with both app router and pages router applications and provides complete coverage of your Next.js site.
What you'd miss
Google Analytics, Plausible, Fathom — none of them fire for GPTBot, ClaudeBot, or Perplexity. Client scripts never run for crawlers that don't execute JS.
What you capture
Every bot hit, server-side, with the exact user-agent, URL, and timestamp — before the page even renders. No sampling, no blind spots.