Documentation

Platform Integration

Spyglasses detects AI agents, crawlers, and human referrals from AI server-side, the moment a request hits your site. To start collecting that traffic you add the Spyglasses tracker once — through a first-party plugin where one exists, or a lightweight middleware snippet everywhere else.

Every integration reports to the same place. Once traffic is flowing, watch it live on your analytics dashboard or the public live demo.

Pick your platform

Each guide covers installation, configuration, and verifying your first detected request.

PlatformIntegration
Next.jsMiddleware package for the App and Pages routers.
NuxtServer middleware module for Nuxt 3.
AstroMiddleware for Astro's SSR request pipeline.
PythonWSGI/ASGI middleware for Django, Flask, and FastAPI.
DrupalModule for Drupal sites.
RubyRack middleware for Rails and Sinatra.
WordPressPlugin installed from the WordPress admin.
Cloudflare WorkersEdge integration that runs before your origin.
WebflowCustom-code snippet for hosted Webflow sites.

Not listed?

Any stack that can run server-side code can integrate. The tracker only needs to see the incoming request headers, so a small middleware in your framework of choice is enough — start from the Next.js or Python guide as a template, or reach out and we'll help you wire it up.

On this page