=== InsightPress - Advanced Analytics for WooCommerce ===
Contributors: dominopress
Tags: woocommerce, analytics, sales, product analytics, cart abandonment
Requires at least: 5.8
Tested up to: 6.9
Requires Plugins: woocommerce
Stable tag: 2.1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A powerful, beautifully designed analytics suite for WooCommerce — track sales, products, traffic, cart abandonment, post engagement, and more.

== Description ==

InsightPress is an advanced analytics plugin for WooCommerce store owners. It gives you a clear, visual, and actionable view of your store's performance — from revenue and product insights to traffic attribution and cart abandonment — all from within your WordPress admin.

Built with a modern React-based UI, InsightPress offers a premium analytics experience without the complexity of third-party tools.

**Free Features:**

= Sales & Revenue Analytics =
*   Total Revenue, Net Revenue, and Order metrics
*   Average Order Value (AOV)
*   Refund tracking
*   Sales trends chart (daily/weekly)
*   Revenue by period with date range filter

= Product & Inventory Analytics =
*   Top Performing Products leaderboard (Revenue, Orders, Clicks, Sold)
*   Worst Sellers analysis (identify slow-moving products)
*   Dead Stock (Out of Stock) tracking
*   Product performance overview (Revenue, Orders, Quantity Sold)
*   Per-product analytics page with sales trends chart
*   Traffic sources per product (pie chart breakdown)
*   Customer analytics: New vs Returning, Countries, Devices, Browsers
*   Customer insights table (name, email, spend, orders, location, device)
*   Cost of Goods (COGS) field on product edit page (PRO required to save/track)

= Post Analytics =
*   Blog post engagement overview
*   Total Views and Unique Visitors per post
*   Engagement column in WordPress post list

= Conversion Analytics (Traffic) =
*   Cart Abandonment Tracking — Abandoned Carts, Revenue Lost, Converted Carts, Abandonment Rate
*   Conversion Ratio and Revenue Recovery Impact visualizations
*   Conversion Rate Trend Chart (daily area chart)
*   Time to Purchase analytics — Average, Median, Min/Max time from first visit to order

**PRO Features (requires InsightPress Pro):**

= Product Analytics (PRO) =
*   Frequently Bought Together (Product Pairings & Bundles analysis)
*   Category Performance (Revenue, Orders, Units Sold by category)
*   Tag Performance (Revenue, Orders, Units Sold by tag)
*   Engagement Metrics per product — Product Views, Unique Visitors, Add to Cart, Checkout Initiated, Conversion Rate
*   Conversion Funnel per product — step-by-step funnel with drop-off percentages
*   Stock Velocity, Days Until Stockout, and Restock Recommendations (Inventory Depletion Forecast)
*   Profit Margin analysis (requires COGS entry)

= Post Analytics (PRO) =
*   Traffic Sources breakdown per post — Organic, Social, Direct, Referral (pie chart + stats)
*   Traffic source distribution, top driver, and Reader Insight

= Conversion Analytics (PRO) =
*   Most Frequently Abandoned Products — table with abandonment count, quantity, and revenue lost
*   Checkout Funnel Drop-off Rate — step-by-step checkout drop-off table with worst-step alert

= Admin Product List Column (PRO) =
*   Inline product stats in the WooCommerce product list (Views, Orders, Revenue)
*   Blurred with lock badge for non-PRO users

= Admin Post List Column (PRO) =
*   Inline engagement stats in the WordPress posts list (Total Views, Unique Visitors)
*   Blurred with lock badge for non-PRO users

👉 [Get InsightPress Pro](https://dominopress.com/plugin/insightpress)

**Key Highlights:**
*   Modern, responsive React-based UI with Chakra UI components
*   ApexCharts for beautiful, interactive data visualizations
*   Date range filter across all analytics sections
*   Freemius-powered licensing and upgrade flow
*   HPOS (High-Performance Order Storage) compatible
*   All data sourced directly from your WooCommerce and WordPress database — no third-party data sharing

---

**Check out our other WordPress Plugins:**

*   [ShopCentral](https://dominopress.com/plugin/shopcentral) - The ultimate Multi-Store Manager for WooCommerce. Manage products, orders, and analytics across your entire network from one central dashboard.
*   [Redirect Master](https://dominopress.com/plugin/redirect-master) - Redirect Old Domain’s Traffic to New Domain.
*   [Autobute](https://dominopress.com/plugins) - Performance optimization suite to maximize your WordPress site speed.
*   [PricePress](https://dominopress.com/plugins) - A simple WooCommerce plugin for advanced, quantity-based pricing rules.
*   [ClaimPress](https://dominopress.com/plugin/claimpress) - Powerful warranty and claim management system for WooCommerce stores.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/insightpress-advanced-analytics-for-woocommerce` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. WooCommerce must be installed and active.
4. Navigate to **InsightPress** in your WordPress admin menu to view your analytics.
5. To unlock PRO features, install and activate **InsightPress Pro** with a valid Freemius license.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =
Yes, WooCommerce must be installed and active. The plugin will deactivate automatically if WooCommerce is not detected.

= Is the data accurate and real-time? =
Yes. InsightPress queries your WordPress and WooCommerce database directly. No data is sent to external servers for analytics processing.

= How do I unlock PRO features? =
Install the **InsightPress Pro** add-on plugin and activate it with your license key from dominopress.com. Once active, all PRO features will be unlocked automatically.

= What is the "Cost of Goods" field? =
InsightPress adds a Cost of Goods (COGS) field to each WooCommerce product. When entered, it allows the plugin to calculate your actual profit margins per product. This feature requires InsightPress Pro to save and use the data.

= Is cart abandonment tracking automatic? =
Yes. InsightPress automatically tracks WooCommerce cart sessions in the background using its own lightweight database tables. No configuration is needed.

= Does it work with HPOS (High-Performance Order Storage)? =
Yes, InsightPress is fully compatible with WooCommerce's High-Performance Order Storage (HPOS / custom order tables).

= What happens to the product/post list columns for free users? =
Free users will see the columns with blurred stats and a PRO badge. Upgrading to InsightPress Pro reveals the full stats inline.

== Screenshots ==

1. Sales & Revenue Analytics — A stunning, high-level dashboard displaying your net revenue trends, refunds, and overall store health.
2. Checkout Funnel Drop-off Rate (PRO) — Visually pinpoint the exact checkout step where customers are abandoning their orders.
3. Cart Abandonment Tracking — Track abandoned carts, revenue lost, and your recovery rate over time with actionable KPI charts.
4. Top Performing Products & Dead Stock — See which products drive your revenue and quickly identify completely out-of-stock items holding you back.
5. Frequently Bought Together & Bundle Opportunities (PRO) — Uncover hidden purchasing patterns to build highly profitable product bundles.
6. Inventory Depletion Forecast (PRO) — Data-driven forecasts that predict exactly when products will stockout based on sales velocity.
7. Single Product Analytics & Traffic Sources (PRO) — Dive into a specific product to see exactly where its traffic comes from and track real-time engagement.
8. Single Product Customer Insights — Identify exactly who is buying a specific product, their lifetime spend, and location.
9. Time to Purchase Analytics — Find out how long it takes your average customer to finally convert (Average, Median, and Min/Max).
10. WooCommerce Admin Product List Integration (PRO) — View inline analytics (Views, Revenue, Orders) directly embedded within the native WooCommerce products table.
11. Post & Blog Engagement Metrics — Analyze blog engagement, unique visitors, and dive deep into traffic sources for every article (PRO feature for traffic sources).

== Changelog ==

= 2.1.0 =
* Added pagination support for high-volume analytics tables (10 items per page).
* Significant performance optimization for post analytics using single SQL aggregation.
* Improved revenue accuracy by excluding 'on-hold' orders from analytics data.
* Global UI standardization for empty states with the new NoContent component.
* Consistent date range labels across all analytics modules.

= 2.0.0 =
* Complete UI rewrite using React and Chakra UI for a modern, premium analytics experience.
* Added Cart Abandonment Tracking (free) with KPI cards, conversion ratio, and revenue recovery charts.
* Added Most Frequently Abandoned Products list (PRO).
* Added Checkout Funnel Drop-off Rate with step-by-step table and worst-step alert (PRO).
* Added Time to Purchase analytics — average, median, min/max time to convert (free).
* Added per-product Engagement Metrics (PRO) — views, add-to-cart, checkout initiated, conversion rate.
* Added per-product Conversion Funnel with step-by-step drop-off visualization (PRO).
* Added Traffic Sources breakdown for products and blog posts (PRO).
* Added admin product list column with inline stats — blurred/locked for free users (PRO).
* Added admin post list column with inline engagement stats — blurred/locked for free users (PRO).
* Integrated Freemius for license management and PRO gating.
* Added HPOS compatibility declaration.
* Added Cost of Goods (COGS) field to WooCommerce product edit page (PRO).
* Improved date range picker with Popover UI across all analytics sections.
* Performance improvements with optimized SQL queries for HPOS and legacy order tables.

= 1.0.0 =
* Initial release with basic Sales & Revenue Analytics dashboard.
