Using a advanced tracking system, WooCommerce Live Cart Tracking plugin records when products are added to or removed from carts and updates the count dynamically. It stores cart data in a WordPress cache for efficiency, with one hour inactivity threshold to identify abandoned carts. The count excludes the current user’s session to avoid self-counting and is displayed prominently on single product pages with a customizable message. Designed for performance and simplicity, the plugin requires no configuration and provides social proof to boost conversions. It ensures compatibility with WooCommerce and includes secure data handling for reliable operation.
Features of WooCommerce Live Cart Tracking
- Real-Time cart tracking: Displays the number of users with a product in their cart on the product page, updated in real-time.
- Session-based tracking: Uses cookies to generate unique session IDs, tracking cart activity without requiring user login.
- Cache storage: Stores cart data in WordPress cache for efficient performance.
- Abandoned cart detection: Considers carts inactive after one hour, excluding them from the count to maintain accuracy.
- Self-exclusion: Excludes the current user’s session from the cart count to prevent self-counting.
- Customizable display: Shows a styled message (e.g., “X users have this product in their cart”) on single product pages, with green text for emphasis.
- Automatic cleanup: Removes session data when items are removed from the cart or an order is processed at checkout.
- No configuration needed: Works out of the box after activation, with no additional setup required.
- Localization support: Uses the
ms-live-cart-trackingtext domain for translatable strings.
Installation
- Upload the plugin folder to the
/wp-content/plugins/directory. - Activate the WooCommerce Live Cart Tracking plugin through the WordPress admin panel.
- Ensure WooCommerce is installed and activated.
- The cart tracking message will automatically appear on single product pages when other users have the product in their carts.
Usage of WooCommerce Live Cart Tracking
- Activate plugin: Once activated, the plugin automatically tracks cart activity and displays the count on product pages.
- View cart count: On single product pages, a message like “X users have this product in their cart” appears below the product summary if other users have the product in their carts.
- Style the message: Adjust the appearance of the cart count message by targeting the
ms-live-cart-trackingelement with inline styles (e.g.,color: green) in your theme’s CSS. - Monitor activity: The plugin tracks cart additions, removals, and order completions, ensuring the count remains accurate and excludes inactive carts after one hour.
- Translate strings: Use the
ms-live-cart-trackingtext domain to translate the cart count message via Polylang or other translation plugins.
Requirements
- WordPress 5.0 or higher
- PHP 7.0 or higher
- WooCommerce 4.0 or higher
- Cookies enabled in users’ browsers for session tracking




