=== Tadrik AI Sales Tracker ===
Contributors: tadrik
Tags: woocommerce, ai, analytics, attribution, survey
Requires at least: 6.5
Tested up to: 7.2
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Track orders referred by AI assistants with thank-you surveys, referrer tagging and revenue reports.

== Description ==

AI assistants send buyers to WooCommerce stores, often without traditional tracking parameters. Tadrik AI Sales Tracker detects AI assistant referrers and UTM tags on first landing, adds an optional one-click post-checkout survey to catch untagged visits, and shows orders and revenue by AI source in WooCommerce.

**In this version**

* Detects visits from ChatGPT, Perplexity, Claude, Gemini, Copilot, You.com, Phind, and AI UTM sources on first landing (sets a functional cookie/session only when an AI source is detected).
* Tags WooCommerce orders with `_tadrik_ai_source` and `_tadrik_ai_referrer` using HPOS-compatible order metadata.
* Renders a lightweight one-click thank-you page survey ("Did an AI assistant help you find us?") with verified AJAX submission.
* Reports AI-attributed orders and revenue by source (referrer vs survey) without double-counting, plus recent tagged orders and survey settings.

**Free and Pro**

The free plugin includes AI referrer/UTM order tagging, the thank-you page survey, and the WooCommerce AI Sales Tracker report. Pro adds date-range filtering, CSV export, and a Store AI-readiness self-check panel.

== Installation ==

1. Make sure WooCommerce is installed and active.
2. Under Plugins > Add New, search for "Tadrik AI Sales Tracker", then install and activate it. Or upload the zip under Plugins > Add New > Upload Plugin.
3. Open WooCommerce > AI Sales Tracker.

== Frequently Asked Questions ==

= What happens if I delete it? =

Deleting the plugin removes only its own settings. Your orders aren't touched.

= Does it work with High-Performance Order Storage (HPOS)? =

Yes. Order metadata is stored and queried through WooCommerce's HPOS-compatible order APIs.

== Changelog ==

= 1.0.0 =
* First version.
