=== Visitant Analytics ===
Tags: analytics, statistics, privacy, gdpr, ai
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Cookie-free website statistics that also show visitors and robots from ChatGPT and other AI.

== Description ==
See who visits your site, where they come from and what they read - without cookies or a consent banner.
Visitant also shows how many visitors ChatGPT, Perplexity, Gemini and other AI assistants send you,
and how often AI robots read your pages.

What the plugin does:

* adds the Visitant script (under 2 KB) to every page for human visitors,
* skips logged-in editors and admins, so you do not count yourself,
* reports AI robots (GPTBot, ClaudeBot, PerplexityBot and others) from the server, with the page and the status code,
* on WooCommerce records the order value on the thank-you page as a "Purchase" event, once per order.

Pages served straight from a full-page cache (WP Rocket, LiteSpeed, a CDN) never reach PHP, so robot
hits on those pages are not reported. For full coverage use the Cloudflare or nginx option in the dashboard.

== Installation ==
1. Plugins - Add Plugin - Upload Plugin, choose visitant-wordpress.zip, Install Now, Activate.
2. Settings - Visitant: enter your domain and, if you want AI robots counted, the server key from the dashboard.
3. Open your site in a private window and check the dashboard: the visit shows up within a minute.

== Changelog ==
= 1.0.1 =
* Robot hits carry the status code (404s are visible) and the real visitor address behind Cloudflare and proxies.
* Robots are reported only on front-end pages, never for admin, REST, cron or login requests.
* On PHP-FPM and LiteSpeed the robot report is sent after the page is delivered, so crawlers never wait for it.
* Crawler list generated from the Visitant server, so the plugin never fires on normal browsers.
* WooCommerce: order value on the thank-you page.
* Domain field accepts a pasted address (https://www.shop.pl/) and cleans it.
= 1.0.0 =
* First release.
