=== GetIntel — AI visitors & AI crawlers ===
Contributors: getintel
Tags: ai, chatgpt, perplexity, analytics, crawlers
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

See which AI bots read your pages and who visits your site from AI assistants.

== Description ==

* AI visitors — adds GetIntel's one-line visitor tag. It only reports visits
  that come from ChatGPT, Perplexity, Gemini, Claude or Copilot. No cookies,
  no personal data.
* AI crawlers — reports requests from AI bots (ChatGPT, Perplexity, Claude,
  Gemini) after the page is served. Bots never run JavaScript, so this part
  runs on your server.

Paste your site key from GetIntel → Analytics into Settings → GetIntel.

Note: pages served entirely from a full-page cache never reach PHP. Exclude
AI bots from caching (or connect Cloudflare in GetIntel) to count every visit.

== Changelog ==

= 0.1.0 =
* First release.

== External services ==

This plugin connects to GetIntel (https://getintel.ai), the service it reports to. It needs a GetIntel account and a site key.

* Visitor tag: on every public page it loads a small script from https://ingest.getintel.ai/v1/ai.js. When a visitor arrives from an AI assistant (ChatGPT, Perplexity, Gemini, Claude or Copilot), the script sends the page path, the referrer host and the utm_source to https://ingest.getintel.ai/v1/hit with your site key. Visits from anywhere else are not sent. No cookies are set and no personal data is sent; a session-storage flag makes each visit count once per browser tab.
* AI crawlers: when a page request comes from an AI bot on GetIntel's list, the plugin sends the bot's user agent, the bot's IP address, the page path and the response status to https://ingest.getintel.ai/v1/hit after the page is served. Requests from people are not sent. Once a day it also sends a "ping" so GetIntel can show the plugin is installed.
* Bot list: about once an hour it downloads the current AI bot list from https://ingest.getintel.ai/v1/config.

GetIntel terms: https://getintel.ai/terms/ — privacy policy: https://getintel.ai/privacy/
