{"id":246368,"date":"2025-08-26T21:33:53","date_gmt":"2025-08-26T21:33:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/salespeak-llm-optimizer\/"},"modified":"2026-02-17T18:26:25","modified_gmt":"2026-02-17T18:26:25","slug":"salespeak-llm-optimizer","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/salespeak-llm-optimizer\/","author":23345929,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.7.0","stable_tag":"1.7.0","tested":"6.8.5","requires":"5.0","requires_php":"","requires_plugins":null,"header_name":"AI Agent Analytics by Salespeak","header_author":"liormech","header_description":"Detects AI bots (ChatGPT, GPTBot, Claude, PerplexityBot, etc.), logs visits to Salespeak's analytics API, and serves alternate content for LLM crawlers.","assets_banners_color":"","last_updated":"2026-02-17 18:26:25","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":400,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.5.8":{"tag":"1.5.8","author":"liormech","date":"2025-09-08 21:13:49"},"1.5.9":{"tag":"1.5.9","author":"liormech","date":"2025-12-31 14:04:12"},"1.6.0":{"tag":"1.6.0","author":"liormech","date":"2026-01-03 05:55:22"},"1.7.0":{"tag":"1.7.0","author":"liormech","date":"2026-02-17 18:26:25"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3463743,"resolution":"128x128","location":"assets","locale":""},"icon-512x512.png":{"filename":"icon-512x512.png","revision":3463742,"resolution":"512x512","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.5.8","1.5.9","1.6.0","1.7.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[244526,256045,239387,256047,256046],"plugin_category":[],"plugin_contributors":[246871],"plugin_business_model":[],"class_list":["post-246368","plugin","type-plugin","status-publish","hentry","plugin_tags-aeo","plugin_tags-ai-agent-tracking","plugin_tags-ai-analytics","plugin_tags-ai-traffic","plugin_tags-chatgpt-analytics","plugin_contributors-liormech","plugin_committers-liormech"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/salespeak-llm-optimizer\/assets\/icon-128x128.png?rev=3463743","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>AI agents are visiting your website hundreds of times a month. ChatGPT, Claude, Perplexity, Gemini. They are reading your pages, evaluating your content, and deciding whether to recommend you to their users. Can you see any of it?\n<strong>Now you can.<\/strong>\nBased on analysis of 640,000+ AI agent crawls across B2B websites, AI agent traffic is one of the fastest-growing \u2014 and most invisible \u2014 sources of website activity. This plugin gives you complete visibility, plus the tools to act on what you find.\n<strong>AI Search Analytics<\/strong>\nMonitor how often AI tools access and cite your content over time \u2014 like Google Analytics, but for AI agent traffic. See trends by day, week, and month across all major AI platforms.\n<strong>Agent Identification &amp; Analysis<\/strong>\nIdentify exactly which AI agents are scanning your site: ChatGPT, Claude, Perplexity, Gemini, and more. Understand their behavior patterns and which content draws the most visits.\n<strong>Page Performance Intelligence<\/strong>\nSee exactly which pages ChatGPT, Claude, and other AI agents actually read when answering questions. This is the foundation of effective Answer Engine Optimization (AEO).\n<strong>AEO Content Gap Detection<\/strong>\nDiscover what critical information is missing from your most-accessed pages. Know what to add so AI agents can confidently recommend your site when users ask relevant questions.\n<strong>What Makes This Different: The Optimization Layer<\/strong>\nMost AI analytics plugins stop at tracking. This one also lets you optimize what AI agents see.\nServe LLM-optimized versions of your pages \u2014 restructured with structured Q&amp;A, comparison data, and testimonial cues \u2014 so ChatGPT and Claude get your complete story, not just whatever text they happen to parse. Analytics + action, not just a dashboard.\nThis is the only WordPress plugin that tracks AI agent visits AND optimizes what they see.<\/p>\n\n<h3>Cache Compatibility<\/h3>\n\n<p>This plugin includes built-in support for bypassing cache on AI bot requests for:\n* <strong>WP Engine<\/strong> - via <code>wpe_is_cacheable<\/code> filter\n* <strong>WP Rocket<\/strong> - via <code>do_rocket_generate_caching_files<\/code> filter\n* <strong>LiteSpeed Cache<\/strong> - via <code>litespeed_can_cache<\/code> filter and <code>LSCACHE_NO_CACHE<\/code> constant\n* <strong>W3 Total Cache<\/strong> - via <code>w3tc_can_cache<\/code> filter\n* <strong>WP Super Cache<\/strong> - via <code>wp_super_cache_late_init<\/code> filter\n* <strong>SiteGround Optimizer<\/strong> - via <code>sg_optimizer_cache_is_enabled<\/code> filter\n* <strong>Kinsta<\/strong> - via cache-control headers\n* <strong>Cloudflare APO<\/strong> - via cookie-based bypass\n<strong>Server-Level Caching (Nginx, Varnish, CDN)<\/strong>\nIf you use server-level caching that runs BEFORE PHP\/WordPress, you may need additional configuration:\nFor <strong>Nginx FastCGI Cache<\/strong>, add to your server config:<\/p>\n\n<pre><code>if ($http_user_agent ~* \"(ChatGPT|GPTBot|ClaudeBot|PerplexityBot|Claude-User|Claude-Web|Google-Extended|bingpreview|OpenAI)\") {\n    set $skip_cache 1;\n}\n<\/code><\/pre>\n\n<p>For <strong>Varnish<\/strong>, add to your VCL:<\/p>\n\n<pre><code>if (req.http.User-Agent ~ \"(?i)(ChatGPT|GPTBot|ClaudeBot|PerplexityBot|Claude-User|Claude-Web|Google-Extended|bingpreview|OpenAI)\") {\n    return (pass);\n}\n<\/code><\/pre>\n\n<p>For <strong>Cloudflare<\/strong> (non-APO), create a Cache Rule:\n- When: <code>User Agent contains \"ChatGPT\" or \"GPTBot\" or \"ClaudeBot\" or \"PerplexityBot\"<\/code>\n- Then: Bypass cache\nThe plugin sends <code>X-Salespeak-AI-Bot: 1<\/code> header for AI bot requests to help with debugging.<\/p>\n\n<h3>Safety &amp; Performance<\/h3>\n\n<p>This plugin is designed to have <strong>ZERO impact on normal visitors<\/strong>:\n* All cache bypass logic only executes when the User-Agent matches a known AI bot pattern\n* For non-AI requests, all filter callbacks immediately return the original value (pass-through)\n* No headers, cookies, or constants are set for normal visitor requests\n* AI bot detection is cached per-request to avoid repeated regex checks\n* The plugin only modifies behavior for an explicit list of known AI bot User-Agent strings:\n  * ChatGPT-User, GPTBot, Claude-User, Claude-Web, ClaudeBot\n  * PerplexityBot, Google-Extended, bingpreview, OpenAI\n  * Applebot-Extended, CCBot, anthropic-ai, cohere-ai<\/p>\n\n<h3>External Services<\/h3>\n\n<p>This plugin integrates with the following external services:<\/p>\n\n<h3>Salespeak Analytics API<\/h3>\n\n<p><strong>Service:<\/strong> Salespeak's event tracking and analytics service\n<strong>Purpose:<\/strong> Logs AI agent visits and user interactions for analytics and optimization purposes\n<strong>Data Sent:<\/strong> When AI agents are detected, the plugin sends:\n- Website URL being visited\n- Agent type (ChatGPT, Claude, GPTBot, etc.)\n- Organization ID (for account association)\n- Request ID (for tracking)\n- Campaign ID (default value for organization tracking)\n<strong>When Data is Sent:<\/strong> Only when AI agents are detected visiting your website\n<strong>Service Provider:<\/strong> Salespeak (https:\/\/salespeak.ai)\n<strong>Terms of Service:<\/strong> https:\/\/salespeak.ai\/terms\n<strong>Privacy Policy:<\/strong> https:\/\/salespeak.ai\/privacy<\/p>\n\n<h3>Salespeak Content Delivery Network (CDN)<\/h3>\n\n<p><strong>Service:<\/strong> Amazon S3-based content delivery for serving AI-optimized content\n<strong>Purpose:<\/strong> Serves alternate, LLM-optimized content to detected AI agents\n<strong>Data Sent:<\/strong> No data is sent to this service \u2014 it only serves content based on URL requests\n<strong>When Data is Sent:<\/strong> Not applicable \u2014 this is a content delivery service only\n<strong>Service Provider:<\/strong> Amazon Web Services (AWS) S3, managed by Salespeak\n<strong>Terms of Service:<\/strong> https:\/\/aws.amazon.com\/service-terms\/\n<strong>Privacy Policy:<\/strong> https:\/\/aws.amazon.com\/privacy\/<\/p>\n\n<h3>Privacy and Data Handling<\/h3>\n\n<p>This plugin only sends data when AI agents are detected visiting your website. No personal user data is collected or transmitted. All data is used solely for analytics and content optimization purposes. The plugin respects user privacy and does not track individual human visitors.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/salespeak-llm-optimizer<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Connect your Salespeak account using your Organization ID (available in your Salespeak dashboard).<\/li>\n<li>AI agent visits will begin logging immediately. Your first data will appear within 24 hours.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"which%20ai%20agents%20does%20this%20plugin%20detect%3F\"><h3>Which AI agents does this plugin detect?<\/h3><\/dt>\n<dd><p>The plugin detects all major AI agents including ChatGPT-User, GPTBot (OpenAI), ClaudeBot, Claude-User, Claude-Web (Anthropic), PerplexityBot, Google-Extended (Gemini), Applebot-Extended, CCBot, anthropic-ai, cohere-ai, bingpreview, and more. New agents are added with each update.<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20slow%20down%20my%20website%20for%20regular%20visitors%3F\"><h3>Does this plugin slow down my website for regular visitors?<\/h3><\/dt>\n<dd><p>No. The plugin has zero impact on normal human visitors. All detection and optimization logic only activates when a known AI agent User-Agent is identified. Every other request passes through untouched.<\/p><\/dd>\n<dt id=\"what%20is%20llm%20content%20optimization%3F\"><h3>What is LLM content optimization?<\/h3><\/dt>\n<dd><p>When an AI agent visits your site, instead of serving your standard page, the plugin can serve an AI-optimized version: restructured with Q&amp;A, comparison data, testimonials, and structured information that AI models can parse and use more effectively when answering user questions.<\/p><\/dd>\n<dt id=\"what%20is%20aeo%20%28answer%20engine%20optimization%29%3F\"><h3>What is AEO (Answer Engine Optimization)?<\/h3><\/dt>\n<dd><p>AEO is the practice of optimizing your content so AI assistants like ChatGPT and Claude recommend your site when users ask relevant questions. This plugin gives you the analytics to measure your AEO performance and the tools to improve it.<\/p><\/dd>\n<dt id=\"do%20i%20need%20a%20salespeak%20account%3F\"><h3>Do I need a Salespeak account?<\/h3><\/dt>\n<dd><p>Yes, a Salespeak account is required to use the analytics and optimization features. Visit salespeak.ai to create an account.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.7.0<\/h4>\n\n<ul>\n<li>Rebranded plugin to \"AI Agent Analytics by Salespeak\"<\/li>\n<li>Updated plugin description and tags for better discoverability<\/li>\n<li>Added Installation and FAQ sections<\/li>\n<li>Updated terminology from \"bot\" to \"agent\" throughout<\/li>\n<\/ul>\n\n<h4>1.6.0<\/h4>\n\n<ul>\n<li>CRITICAL FIX: Cache bypass now runs at <code>plugins_loaded<\/code> (priority 1) instead of <code>template_redirect<\/code> to ensure cache is bypassed before caching plugins serve cached content<\/li>\n<li>Added support for LiteSpeed Cache, WP Rocket, W3 Total Cache, WP Super Cache, SiteGround Optimizer, and Kinsta<\/li>\n<li>Added Cloudflare APO bypass support via cookie<\/li>\n<li>Added <code>send_headers<\/code> hook to send no-cache headers earlier in the request lifecycle<\/li>\n<li>Added <code>Surrogate-Control<\/code> and <code>X-Accel-Expires<\/code> headers for Varnish\/Fastly and Nginx FastCGI cache bypass<\/li>\n<li>Added <code>X-Salespeak-AI-Bot: 1<\/code> debug header to help identify AI bot requests<\/li>\n<li>Added detection for additional AI bots: Applebot-Extended, CCBot, anthropic-ai, cohere-ai<\/li>\n<li>Added Cache Compatibility documentation with server-level configuration examples<\/li>\n<li>Centralized AI bot detection into <code>is_ai_bot_request()<\/code> method for consistency<\/li>\n<\/ul>\n\n<h4>1.5.9<\/h4>\n\n<ul>\n<li>Added WP Engine cache bypass filter (<code>wpe_is_cacheable<\/code>) for AI bot requests<\/li>\n<li>Safe UA handling: only bypasses cache when User-Agent is present and matches AI bot patterns<\/li>\n<li>Supports: ChatGPT-User, GPTBot, Google-Extended, bingpreview, PerplexityBot, Claude-User, Claude-Web, ClaudeBot, OpenAI<\/li>\n<\/ul>\n\n<h4>1.5.8<\/h4>\n\n<ul>\n<li>Minor stability improvements<\/li>\n<\/ul>\n\n<h4>1.4.5<\/h4>\n\n<ul>\n<li>Enhanced performance for AI use cases<\/li>\n<li>Added country location data<\/li>\n<li>Maintains cache safety headers, Claude detection, and escaping for output<\/li>\n<\/ul>","raw_excerpt":"See which AI agents (ChatGPT, Claude, Perplexity) visit your site, what they read, and optimize what they see. Real-time AI traffic analytics + LLM co &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/246368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=246368"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/liormech"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=246368"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=246368"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=246368"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=246368"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=246368"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=246368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}