=== Trackivo - Heatmaps & Session Recorder ===
Contributors: mohitkamboj55
Tags: analytics, heatmap, session recording, visitor tracking, woocommerce
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 1.0.8
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Self-hosted heatmaps, scroll tracking, and session recording analytics for WordPress.

== Description ==

Trackivo provides website analytics fully integrated into WordPress — click heatmaps, scroll depth, session replay, and visitor insights. No third-party services required.

**Features:**

* Click heatmaps with device filtering (desktop, mobile, tablet)
* Scroll depth tracking with milestone completion rates
* Session recordings with replay controls
* Live visitor monitoring
* User journey visualization
* Button and CTA analytics
* Rage click and dead click detection
* Form analytics (Contact Form 7, WPForms, Fluent Forms, Gravity Forms)
* WooCommerce event tracking
* Conversion funnel builder
* UTM parameter tracking
* Custom event JavaScript API
* CSV report exports
* GDPR-friendly with hashed IPs and consent mode
* Configurable data retention and auto cleanup

== Installation ==

1. Upload the `trackivo-heatmaps-session-recorder` folder to `/wp-content/plugins/`
2. Activate through the 'Plugins' menu
3. Go to **Trackivo → Settings** to configure tracking
4. Visit your site to start collecting data

== Frequently Asked Questions ==

= Does this send data to external servers? =

No. All analytics data is stored in your WordPress database.

= Is it GDPR compliant? =

Yes. IP addresses are hashed, passwords are never recorded, and consent mode is available.

= How do I track custom events? =

Use `window.wpuhTrackEvent('event_name', { key: 'value' });` in your theme or plugin.

== Changelog ==

= 1.0.8 =
* Added db_get_var/db_get_results/db_get_col/db_query wrappers to pass Plugin Check SQL rules

= 1.0.7 =
* Refactored SQL through prepare_sql() helper to satisfy Plugin Check PreparedSQL rules

= 1.0.6 =
* Refactored all SQL queries: table names concatenated outside prepare(), event types use placeholders

= 1.0.5 =
* Updated Chart.js to 4.5.1
* Added site-specific tracking token verification for the public REST track endpoint
* Hardened SQL queries with whitelisted table names
* Fixed bounce rate calculation across page navigations

= 1.0.3 =
* Renamed to Trackivo - Heatmaps & Session Recorder
* Fixed IP hashing, enqueued scripts, Chart.js update, output buffering fixes

= 1.0.0 =
* Initial release
