=== Amazer Visitor Intelligence ===
Contributors: amazerinc, amazerplugins
Tags: website visitors intelligence, anonymous website visitors identification, anonymous website visitors tracking, audience overlap tracker, lost conversion tracker, lost sales tracker
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Turn anonymous website visitors into warm B2B leads. Reveal visiting companies, intent signals, and page journeys in real time without forms.

== Description ==

**Amazer Visitor Intelligence** reveals the businesses, corporate organizations, and buying intent signals behind your anonymous website traffic in real time — even if visitors never submit a contact form or inquiry.

### Key Capabilities
* **Real-Time B2B IP Identification**: Automatically match anonymous corporate IP addresses with company names, headquarters, industry, and firmographic profiles.
* **Visitors & Session Journey**: Inspect visitor activity, dwell time, traffic sources, devices, and exact pages browsed.
* **High Intent Visitors & Conversion Tracking**: Highlight visitors spending time on commercial intent pages (such as `/pricing` or product pages) and track goal conversion paths.
* **Lost Conversion & Visitors Overlap**: Surface cross-store competitor shopping and lost conversion signals across participating stores.
* **Explicit Opt-In Consent**: Storefront telemetry is disabled by default upon activation and only runs after explicit administrator opt-in.
* **Normal & Premium Plans**: Includes a free Normal tier (Unlimited Visitors, up to 10 Firmographic records, up to 10 Visitors Overlap records, and up to 5 Lost Conversion records) with optional Premium upgrades via PayPal for unlimited access.

### 3rd Party Service Disclosure
This plugin connects to the following external services (only after explicit administrator action):

1. **Amazer Cloud API (by Amazer Inc. / Plestar Inc.)** — Performs reverse-IP company identification, geolocation lookup, and optional cross-store matching (Visitors Overlap & Lost Conversion) after the administrator enables tracking.
   * **Website**: https://amazerinc.com/amazer-analytics.html
   * **Terms of Service**: https://plestar.net/amazer-analytics/terms.html
   * **Privacy Policy**: https://plestar.net/amazer-analytics/privacy.html

2. **PayPal Subscriptions & Checkout SDK** — Loaded only in the WordPress Admin dashboard when an administrator opens the Upgrade modal to subscribe to a Premium plan.
   * **Service URL**: https://www.paypal.com/sdk/js
   * **Terms of Service**: https://www.paypal.com/legalhub/useragreement-full
   * **Privacy Policy**: https://www.paypal.com/legalhub/privacy-full

== Source Code & Build Instructions ==

The human-readable source code for the minified frontend bundle (`dist/bundle.js`) is publicly available at:
* Repository: https://github.com/amazer-inc/Amazer-Visitor-Intelligence

To build from source:
1. `git clone https://github.com/amazer-inc/Amazer-Visitor-Intelligence.git`
2. `npm install`
3. `npm run build`

== Installation ==

1. Install **Amazer Visitor Intelligence** from the WordPress Plugin Directory or upload `amazer-visitor-intelligence.zip` via **Plugins > Add New > Upload Plugin**.
2. Activate the plugin and open **Amazer Visitor Intelligence** in your WordPress admin menu.
3. Click **Enable Amazer Visitor Intelligence** to grant explicit consent and start capturing visitor intelligence.

== Frequently Asked Questions ==

= Does this plugin track visitors automatically upon activation? =
No. Storefront telemetry is completely disabled upon activation. No external API requests are made until the site administrator clicks **Enable Amazer Visitor Intelligence**.

= Does this plugin slow down my website? =
No. Visitor telemetry uses non-blocking background requests (`navigator.sendBeacon` / `fetch`) and never delays page rendering.

= How does Cross-Store Visitors Overlap & Lost Conversion matching work? =
When enabled by the administrator, visitor IP addresses and page-visit telemetry are sent to the Amazer Cloud API for corporate reverse-IP identification and cross-store market intent matching.

= Does this plugin use cookies? =
Only after the administrator enables tracking. When enabled, a single first-party cookie (`amz_vid`, 365-day expiry, `SameSite=Lax`) is stored in the visitor's browser to recognize the same returning visitor even if their IP address changes.

== Screenshots ==

1. Dashboard overview with real-time visitor metrics, country, traffic source, and device breakdowns.
2. Visitors log showing masked corporate IPs, locations, visitor types, and identified companies.
3. High Intent Visitors analytics with 14-day activity chart and most visited intent URLs.
4. Conversion tracking dashboard with conversion events over time and acquisition channels.
5. Lost Conversion activity log showing cross-store competitor conversion signals.
6. Visitors Overlap screen revealing cross-store competitor shopping and market intent signals.
7. Firmography detail view displaying full corporate metadata and page visit history.
8. Settings page for High Intent Visitors & Conversion Pages, competitor attribution, and opt-in privacy controls.

== Changelog ==

= 1.0.1 =
* Added browser fallback sync for store activation and queued telemetry batching on hosts where outbound PHP ports are restricted.
* Added uninstall.php cleanup when deleting the plugin.

= 1.0.0 =
* Initial release with real-time reverse-IP company reveal, Visitors, High Intent Visitors, Conversion, Lost Conversion, Visitors Overlap, Firmography, and PayPal Premium plans.
