Agent Analytics - AI Traffic & Revenue Attribution
See which AI agents visit your website and docs
Track agent traffic in real-time and attribute signups to AI-sourced developers. Google Analytics can't see agents, but we can.
Works with your existing stack
Vercel
Cloudflare
AWS
Netlify
Next.js
+any Node.js
Stripe
AI Agent Visits Over Time
Daily AI coding and browsing agent traffic
- AI Agent Visits: 1,247
- Total Visits: 8,429
- Agent Share: 14.8%
- Unique Agents: 7
Agent Breakdown
Distribution of AI agent visits to your site
- 55% ChatGPT
- Claude Code
- Codex
- Other
Top Agents
- ChatGPT 686
- Claude Code 212
- Codex 150
The traffic you can't see
AI coding agents don't load browsers. They don't execute JavaScript. That means Google Analytics, Amplitude, and Mixpanel are blind to a growing percentage of your developer traffic.
When Claude Code visits your docs to help a developer integrate your API, your analytics dashboard shows nothing. But that agent visit could lead to a signup worth thousands.
Lightsage detects agent traffic at the middleware level and connects it to downstream conversions, so you can finally see the full picture.
Complete agent visibility
Track, analyze, and attribute every agent interaction.
Real-Time Agent Detection
See which AI agents visit your website and docs as it happens. Claude Code, Cursor, ChatGPT, and more are detected automatically without impacting performance.
Session Tracking
Follow the complete journey: which pages agents visit, how long they stay, and what actions they take before developers sign up.
Revenue Attribution
Connect agent visits to actual signups, API key generation, and revenue. Know which agents drive real business outcomes.
Traffic Trends
Track agent traffic over time. See weekly trends, identify spikes, and correlate with content or product changes.
Page Performance
Know which pages agents visit most. Optimize high-traffic pages and fix underperforming documentation.
One-Line Install
Lightweight middleware that takes 5 minutes to set up. Works with Vercel, Cloudflare, Mintlify, and any Node.js server.
Track AI agents visits to your website and docs
Add one line of middleware to see which AI coding agents visit your website and docs. Works with Next.js, Vercel, Cloudflare, and Express.
// middleware.ts
import { withAgentTracking } from '@lightsage/agent-tracker/next';
export default withAgentTracking({
apiKey: process.env.LIGHTSAGE_API_KEY
});
export const config = {
matcher: ['/((?!api|_next|admin).*)']
};
Start tracking agent traffic today
Set up in 5 minutes. See which agents visit your docs and connect that traffic to revenue.