Track AI crawlersvisiting your site
ai.js shows you when ChatGPT, Claude, and other AI models visit your website. Understand AI traffic patterns to optimize your content strategy.
Real-time visibilityinto AI traffic
Teams that use ai.js understand their AI traffic patterns and optimize content accordingly
One Line Setup
Add the ai.js script to your website and start tracking AI crawler visits immediately.
Live Page Tracking
See exactly which pages AI models are visiting on your website in real-time.
Detailed Analytics
Get comprehensive insights about AI crawler behavior and content preferences.
Implementation Examples
See how leading companies use ai.js to track AI crawler behavior
Basic Setup
<!-- Add this to your website's <head> section --> <script src="https://cdn.trylapis.com/ai.js"></script> <script> // Initialize AI crawler tracking Lapis.init({ apiKey: 'your-api-key-here', trackBots: ['GPTBot', 'Claude-Web', 'Bard', 'all'], realtime: true, privacy: 'strict' }); // Track page views from AI bots Lapis.track('page_view', { url: window.location.href, title: document.title, category: 'product-page' }); // Monitor content extraction events Lapis.onExtraction((data) => { console.log('AI bot extracted content:', data); // Send to your analytics }); // Real-time AI crawler alerts Lapis.onCrawl((crawler) => { if (crawler.bot === 'GPTBot') { console.log('ChatGPT is reading your site'); // Trigger real-time notification } }); </script>
Advanced Features
// Advanced ai.js configuration Lapis.init({ apiKey: 'your-api-key', trackBots: 'all', realtime: true, webhooks: { url: 'https://your-site.com/webhook', events: ['crawl', 'extraction'] }, analytics: { googleAnalytics: 'GA-XXXXX', customEvents: true } }); // Custom event tracking Lapis.onCrawl((data) => { // Send to your CRM sendToCRM(data); // Trigger marketing automation if (data.bot === 'GPTBot') { triggerSequence('chatgpt-visit'); } });
Understanding yourAI visitors
Know what content AI models prefer and adapt as they evolve
See what content AI likes
Different AI models visit different pages on your site. Some prefer your blog posts, others your product pages.
Stay ahead of changes
AI models update their crawling patterns regularly. Know immediately when they change and adapt accordingly.
Real-time intelligence
See AI crawler activity as it happens. Understand what people are searching AI models for.