Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.pierview.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Pierview Agent Analytics plugin detects when AI agents visit your WordPress site and reports those visits to your Pierview dashboard. It identifies traffic from 25+ AI agents — including ChatGPT, Claude, Perplexity, Gemini, Grok, and more — giving you a clear picture of how AI systems are crawling and consuming your content. No JavaScript is injected on the frontend. Detection happens server-side on every request.

Prerequisites

  • A Pierview account
  • WordPress 5.9 or later
  • PHP 7.4 or later

Installation

1

Open the plugin installer

In your WordPress admin, go to Plugins > Add New Plugin.
2

Search for the plugin

Search for Pierview Agent Analytics and click Install Now, then Activate.

Configuration

1

Get your API key

Go to your Pierview dashboard and copy your API key from the API Keys tab.
2

Open plugin settings

In your WordPress admin, go to Settings > Pierview Analytics.
3

Enter your API key

Paste your API key into the API Key field, ensure Enable Tracking is checked, and click Save Changes.
4

Verify the connection

Click Send Test Event to confirm the plugin can reach the Pierview endpoint. A success message confirms your site is connected.

Detected AI Agents

The plugin matches User-Agent strings against 25+ known AI patterns:
AgentPatterns detected
ChatGPTGPTBot, ChatGPT-User, OAI-SearchBot
ClaudeClaudeBot, Claude-User, Claude-SearchBot, anthropic-ai
PerplexityPerplexityBot, Perplexity-User
Gemini / GoogleGoogle-Extended, GoogleAgent-Mariner, Google-CloudVertexBot
Grok / xAIGrokBot, xAI-Grok, Grok-DeepSearch
MicrosoftBingbot
AppleApplebot, Applebot-Extended
MetaFacebookBot
AmazonAmazonbot
DuckDuckGoDuckAssistBot
OthersCohere, Mistral, DeepSeek, You.com, ByteDance, Diffbot, Phind, Huawei, Common Crawl, Allen AI

Privacy Settings

The plugin includes built-in privacy controls under the Privacy tab in plugin settings. Query parameter redaction — Strip sensitive values from tracked URLs before they are sent to Pierview. For example, add token or session_id to prevent those values from leaving your server. Path exclusions — Exclude entire sections of your site from tracking by prefix. For example, adding /checkout/ or /members/ ensures those paths are never reported. The following are always excluded, regardless of settings:
  • WordPress admin pages
  • REST API requests (/wp-json/)
  • Login page (/wp-login.php)
  • Feed pages

Data Collected

Each tracked AI visit sends the following to Pierview:
FieldDescription
user_agentFull User-Agent string
agent_nameNormalized agent name (e.g. chatgpt, claude)
hostYour site’s hostname
pathRequest path (after redaction rules are applied)
methodHTTP method
refererHTTP Referer header, if present
client_ipVisitor IP address
timestampUTC timestamp of the visit
IP addresses are included in tracked events and are necessary for accurate bot tracking — they allow Pierview to deduplicate visits, identify known bot IP ranges, and distinguish real AI agents from spoofed User-Agent strings.

Next Steps