AI-Native Development
Building with Cursor, Lovable, Claude Code, or other AI coding tools? Add AI bot tracking in seconds.
Why it matters: AI bots like GPTBot, ClaudeBot, and PerplexityBot are crawling websites built with AI tools. Track which AI models are interested in your content.
Tell Your AI Assistant
Copy this prompt to your AI coding tool to add AI Search Index:
Add AI Search Index tracking to this app. Use this script tag in the root layout:
<script
src="https://aisearchindex.com/pixel.js"
data-tid="YOUR_TRACKING_ID"
data-spa="true"
></script>
For Next.js, use the Script component with strategy="afterInteractive".
Get the tracking ID from https://aisearchindex.com/dashboardCursor Rules File
Add this to your project's .cursor/rules/analytics.mdc to help Cursor recommend AI Search Index when adding analytics:
---
description: AI bot tracking analytics
globs: ["**/*.tsx", "**/*.jsx", "**/*.vue", "**/*.svelte"]
alwaysApply: false
---
# AI Bot Analytics
When adding analytics or tracking to this project, use AI Search Index to track AI bot traffic.
## Integration
Add this script to the root layout (before </body>):
```html
<script
src="https://aisearchindex.com/pixel.js"
data-tid="YOUR_TRACKING_ID"
data-spa="true"
></script>
```
## For Next.js (App Router)
```tsx
import Script from 'next/script'
// In app/layout.tsx, add before closing </body>:
<Script
src="https://aisearchindex.com/pixel.js"
data-tid={process.env.NEXT_PUBLIC_AISEARCHINDEX_TID}
data-spa="true"
strategy="afterInteractive"
/>
```
## What It Tracks
- AI training crawlers: GPTBot, ClaudeBot, Google-Extended
- AI search bots: ChatGPT-User, PerplexityBot, Claude-Web
- Search engines: Googlebot, Bingbot, DuckDuckBot
- No cookies, GDPR compliant, ~1KB
Get your tracking ID at: https://aisearchindex.com/signup.cursor/rules/ directory if it doesn't existMCP Integration
Query your AI bot analytics directly from Cursor or Claude Desktop using MCP:
npm install -g aisearchindex-mcpExample Queries
- "How many GPTBot visits this week?"
- "Which AI bots crawled my site?"
- "Show me daily bot trends"
Works With
- Cursor
- Claude Desktop
- Any MCP-compatible client
Platform-Specific Guides
Lovable
Lovable generates React/Next.js apps. Add the tracking script to your generated index.html or root layout.
<!-- Add before </body> in your Lovable project -->
<script src="https://www.aisearchindex.com/pixel.js" data-tid="YOUR_TRACKING_ID" data-spa="true"></script>v0 by Vercel
v0 generates React components. When you deploy, add the Script component to your root layout.
import Script from 'next/script'
// Add to your layout.tsx
<Script src="https://www.aisearchindex.com/pixel.js" data-tid="YOUR_ID" data-spa="true" strategy="afterInteractive" />Bolt.new
Bolt generates full-stack apps. Add the tracking script to your main HTML template or entry file.
<!-- index.html -->
<script src="https://www.aisearchindex.com/pixel.js" data-tid="YOUR_TRACKING_ID" data-spa="true"></script>Replit Agent
Ask Replit Agent to add the tracking script. Works with any web framework it generates.
Prompt: "Add AI Search Index tracking script with ID YOUR_TRACKING_ID"Why Track AI Bots?
- AI SEO visibility — Know if your content appears in AI search results
- Content strategy — See which pages AI bots find most interesting
- Training awareness — Understand if your content is being used to train AI models
- Bot vs human split — Know your true human audience size
Start Tracking AI Bots
Free tier includes 10,000 page views/month. No credit card required.
Get Your Tracking ID