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.
| Platform | Integration |
|---|---|
| Next.js | Middleware package for the App and Pages routers. |
| Nuxt | Server middleware module for Nuxt 3. |
| Astro | Middleware for Astro's SSR request pipeline. |
| Python | WSGI/ASGI middleware for Django, Flask, and FastAPI. |
| Drupal | Module for Drupal sites. |
| Ruby | Rack middleware for Rails and Sinatra. |
| WordPress | Plugin installed from the WordPress admin. |
| Cloudflare Workers | Edge integration that runs before your origin. |
| Webflow | Custom-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.
Related
- Getting started — create your account and add a property before you install
- AI Traffic Analytics — the product overview and what the dashboards show
- Traffic control — once you're collecting, decide what to allow or block