=== CiteFlow GEO ===
Contributors: citeflow
Tags: ai search, llms.txt, schema, json-ld, chatgpt
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI search visibility monitoring for WordPress: AI crawler rules, llms.txt and schema from your content, plus visits from AI answers.

== Description ==

AI assistants answer questions directly and only cite sites they can read. CiteFlow GEO applies the three fixes that matter most, driven by your CiteFlow scan:

* **AI crawler access** — adds explicit Allow rules for ChatGPT, Perplexity, Gemini, Claude and other AI search crawlers to your robots.txt.
* **/llms.txt** — an AI-readable index of your pages, posts, products and topics, generated from your real content on every request.
* **JSON-LD structured data** — Organization and WebSite on your home page, Article on posts, WebPage on pages, built from your site settings, logo and post data.

* **AI crawler visits** (paid plans) — counts requests from AI crawlers such as GPTBot, OAI-SearchBot, ClaudeBot and PerplexityBot per page, checks each against the operator's published IP ranges where one exists, and sends daily totals to CiteFlow. Pages served from a page cache or CDN never reach WordPress and are not counted.
* **Visits from AI answers** (paid plans) — adds a small script to your pages that counts visits arriving from a ChatGPT, Perplexity, Gemini, Claude or Copilot answer, per page. It runs in the visitor's browser, so cached pages count too. No cookies, no IP addresses; Do Not Track and Global Privacy Control are respected.

* **IndexNow** (optional, off by default, any plan) — when you publish or update a public post or page, the plugin sends its URL to IndexNow (api.indexnow.org), which shares it with the search engines that support the protocol. Edits made within a minute go in one request. The plugin creates this site's IndexNow key and serves it at /<key>.txt. Turn it on in Settings → CiteFlow GEO.

Your CiteFlow score and issue list show in Settings → CiteFlow GEO, with a link to the full report. Nothing generic is ever written to your site: every line of llms.txt and every JSON-LD field comes from your own WordPress data.

Requires a free CiteFlow account (https://www.citeflow.io). Crawler rules work on the free plan; llms.txt and JSON-LD need the Standard plan.

== Installation ==

1. Install and activate the plugin.
2. In CiteFlow, open your dashboard, click your site, open the WordPress tab and copy the site token.
3. In WordPress, go to Settings → CiteFlow GEO, paste the token, Save.

The plugin syncs with CiteFlow twice a day and whenever you click Sync now.

== Frequently Asked Questions ==

= Does it edit my theme? =
No. It hooks into WordPress's robots.txt output, adds a rewrite for /llms.txt (and serves /<key>.txt when IndexNow is on), and prints a script tag in wp_head (and, on paid plans, the visit counter in wp_footer). Deactivating removes them all.

= I have a robots.txt file on disk =
WordPress only generates robots.txt when no physical file exists. If you have one, copy the Allow rules from your CiteFlow report into it.

= What data is sent to CiteFlow? =
The site token and your site URL, when fetching your score. On paid plans, also daily counts of AI crawler requests: date, crawler name, page path, whether the request came from the crawler's published IP range, and the count. No IP addresses, user agents or visitor data are stored or sent; the visitor IP is only compared in memory with the crawler's published ranges. On paid plans, visitors who arrive from an AI assistant's answer send CiteFlow, from their browser, the page path, the assistant's domain (for example chatgpt.com) and the utm_source value; CiteFlow stores only daily counts per page and assistant. Other visitors send nothing. No cookies or browser storage are used. Page content is never uploaded by this plugin; scanning happens from CiteFlow's side like any crawler. If you turn on IndexNow, publishing or updating a public post or page sends that page's URL, your site's host name, this site's IndexNow key and the key file URL to api.indexnow.org (not to CiteFlow). No author, visitor or content data is sent.

== Changelog ==

= 1.3.0 =
* IndexNow (optional, off by default): notifies IndexNow when a public post or page is published or updated. Per-site key served at /<key>.txt. Sends URLs only, never to CiteFlow.

= 1.2.0 =
* Visits from AI answers: counts visits that arrive from ChatGPT, Perplexity, Gemini, Claude and Copilot answers per page (paid plans). No cookies, no IPs; Do Not Track respected.

= 1.1.0 =
* AI crawler visits: per-page daily counts of AI crawler requests, verified against published IP ranges, sent to CiteFlow (paid plans). No IPs stored or sent.

= 1.0.0 =
* Initial release: robots.txt AI-crawler rules, /llms.txt, Organization/WebSite/Article/WebPage JSON-LD, score in wp-admin.
