# 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.

<Callout>
Every integration reports to the same place. Once traffic is flowing, watch it live on [your analytics dashboard](/docs/dashboards) or the public [live demo](/ai-analytics-live).
</Callout>

## Pick your platform

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

| Platform | Integration |
|---|---|
| [Next.js](/docs/platforms/nextjs) | Middleware package for the App and Pages routers. |
| [Nuxt](/docs/platforms/nuxt) | Server middleware module for Nuxt 3. |
| [Astro](/docs/platforms/astro) | Middleware for Astro's SSR request pipeline. |
| [Python](/docs/platforms/python) | WSGI/ASGI middleware for Django, Flask, and FastAPI. |
| [Drupal](/docs/platforms/drupal) | Module for Drupal sites. |
| [Ruby](/docs/platforms/ruby) | Rack middleware for Rails and Sinatra. |
| [WordPress](/docs/platforms/wordpress) | Plugin installed from the WordPress admin. |
| [Cloudflare Workers](/docs/platforms/cloudflare-workers) | Edge integration that runs before your origin. |
| [Webflow](/docs/platforms/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](/docs/platforms/nextjs) or [Python](/docs/platforms/python) guide as a template, or reach out and we'll help you wire it up.

## Related

- [Getting started](/docs/getting-started/overview) — create your account and add a property before you install
- [AI Traffic Analytics](/ai-traffic-analytics) — the product overview and what the dashboards show
- [Traffic control](/docs/getting-started/traffic-control) — once you're collecting, decide what to allow or block
