AI Search, Crawler, Bot Analytics | Promptmonitor Docs

AI Search, Crawler, Bot Analytics

Track AI search engines, crawlers, and bots visiting your website. Get insights into traffic from AI platforms like ChatGPT, Claude, and Perplexity.

AI Analytics Setup Guide

Server side analytics tracks AI agents, crawlers, and all other bots that don't run JavaScript. You need to add this to your server's middleware.

You can use our REST API. We also provide a Next.js middleware for you to use.

Endpoint

POST https://analytics.promptmonitor.io/v1/visits/track

Headers

Content-Type: application/json

Body

{
  "website_id": "your-website-id",
  "request_path": "/current/path",
  "request_method": "GET",
  "request_headers": {
    "user-agent": "User-Agent header from request",
    "referer": "Referer header from request",
    "host": "Host header from request"
  }
}

Implementation Tips

Example with cURL

curl -X POST https://analytics.promptmonitor.io/v1/visits/track \
  -H "Content-Type: application/json" \
  -d '{
    "website_id": "your-website-id",
    "request_path": "/",
    "request_method": "GET",
    "request_headers": {
      "user-agent": "GPTBot/1.0",
      "referer": "",
      "host": "example.com"
    }
  }'

AI Crawlers, Bots that we track

Debugging

Not seeing AI traffic?

Need help? Contact support or check the Web Analytics overview.