=== Apstal – AI Agent & Chatbot for Website Analytics ===
Contributors: apstal01
Tags: analytics, ai, session replay, tracking, chatbot
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Ask questions about your traffic — get answers from AI. Session replays, competitor scans, rage click detection. Cookie-free and invisible to ad blockers.

== Description ==

Apstal tracks your website visitors, records their sessions, and lets an AI agent analyze everything for you. You ask questions — it queries your real data and tells you what's happening, what's broken, and what to do next.

**This plugin connects your WordPress site to the [Apstal](https://apstal.com) platform.**

= What it does =

* **AI Agent** — Ask any question about your traffic in plain language. "Where do my visitors drop off?" "Which pages convert best?" The AI answers from your real data.
* **Session Replays** — Watch exactly how real users interact with your site. See rage clicks, hesitation, and drop-offs.
* **Competitor Intelligence** — Scan competitor websites for tech stack, traffic patterns, and changes over time.
* **Advanced Tracking** — Page views, clicks, scrolls, rage clicks, dead clicks, exit intent — all tracked automatically.
* **Voice AI** — Talk to your analytics assistant by voice (Premium).
* **Privacy First** — No cookies, fully GDPR compliant, invisible to ad blockers. Captures 100% of visitors.
* **Works everywhere** — WordPress, Shopify, Webflow, Next.js, any website. One script tag, 2 minutes setup.

= Why Apstal? =

You shouldn't need to dig through charts and reports to understand your own website. When something breaks — a drop in signups, users leaving a key page — you're left guessing what went wrong.

Apstal works differently. It watches what your visitors actually do, and when you ask "why did traffic drop?" — it gives you a straight answer. No setup complexity, no learning curve. Just ask and know.

== Third Party Services ==

This plugin relies on the **Apstal** external service ([https://apstal.com](https://apstal.com)) to collect analytics data and provide the AI agent functionality.

When activated with a valid Project ID, the plugin loads a remote JavaScript file from `https://apstal.com/apstal` on every page of your site. This script sends anonymous visitor data (page views, clicks, scroll depth) to the Apstal servers for processing.

The admin dashboard page embeds an iframe from `https://apstal.com/chat` so you can interact with the AI assistant directly inside WordPress.

* [Apstal Terms of Service](https://apstal.com/terms)
* [Apstal Privacy Policy](https://apstal.com/privacy)
* [Apstal DPA](https://apstal.com/dpa)

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/apstal-ai-chatbot` directory, or install the plugin through the WordPress plugins screen.
2. Activate the plugin through the "Plugins" screen in WordPress.
3. Go to "Apstal AI" → "Settings" in your admin menu.
4. Enter your Project ID (found at [apstal.com/chat](https://apstal.com/chat)) and click Save.

== Frequently Asked Questions ==

= Where do I get a Project ID? =
Sign up for free at [apstal.com](https://apstal.com), create a project, and copy the Project ID from your dashboard.

= Is this plugin free? =
Yes, the plugin is free. Apstal offers a free tier with 1 website and AI agent included. Premium plans start at $48/mo for session replays, voice AI, and more.

= Does it slow down my site? =
No. The tracking script loads asynchronously and deferred — it does not block page rendering.

= Does it use cookies? =
No. Apstal is fully cookieless and GDPR compliant by design. No cookie consent banner needed.

= Is it blocked by ad blockers? =
No. Apstal is invisible to uBlock Origin, AdGuard, AdBlock, and Ghostery. It captures 100% of your visitors.

= Can I talk to my analytics by voice? =
Yes, Premium users can use the built-in voice AI assistant to ask questions hands-free.

== Screenshots ==

1. The Apstal AI Dashboard inside WordPress — ask questions about your traffic.
2. Simple settings page — paste your Project ID and you're done.

== Changelog ==

= 1.0.0 =
* Initial release.
