Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/bhavik-dreamz/woocommerce-ai-product-recommender-tracker/archive/refs/heads/main.zipA powerful WooCommerce plugin that tracks user activity and sends data to an external API for AI-powered product recommendations.
Description
WooCommerce AI Product Recommender Tracker is designed to help e-commerce stores improve their product recommendations by tracking user behavior and sending this data to an AI recommendation system. The plugin tracks various user interactions including product views, add to cart actions, checkout initiation, and order completion.
Features
-
User Activity Tracking
- Product views (with minimum view time)
- Add to cart actions
- Checkout initiation
- Order completion
-
Data Collection
- Event type
- Product ID and name
- User ID (for logged-in users)
- Session ID
- Timestamp
- Referrer URL
- User agent
- WooCommerce version
- Site URL
-
Admin Settings
- Customizable API endpoint
- Enable/disable tracking
- Easy configuration under WooCommerce menu
Requirements
- WordPress 5.8 or higher
- PHP 7.4 or higher
- WooCommerce 5.0 or higher
Installation
- Download the plugin zip file
- Go to WordPress admin panel > Plugins > Add New
- Click "Upload Plugin" and select the downloaded zip file
- Activate the plugin
- Go to WooCommerce > AI Tracker Settings to configure the plugin
Configuration
- Navigate to WooCommerce > AI Tracker Settings
- Enter your API endpoint URL
- Enable/disable tracking as needed
- Save changes
API Integration
The plugin sends data to your specified API endpoint in the following format:
{
"event_type": "product_view|add_to_cart|checkout_initiated|order_completed",
"product_id": "123",
"product_name": "Product Name",
"user_id": "456",
"session_id": "session-uuid",
"timestamp": "2024-03-15 10:30:00",
"referrer": "https://example.com",
"user_agent": "Mozilla/5.0...",
"site_url": "https://yourstore.com",
"wc_version": "8.0.0"
}
Security
- All data is sanitized before being sent
- Nonce verification for AJAX requests
- Session cookies are secure and HTTP-only
- No tracking in admin area
Support
For support, please visit https://bhavikpatel.com/support
Author
- Name: Bhavik Patel
- Website: https://bhavikpatel.com
License
This plugin is licensed under the GPL v2 or later.
Changelog
1.0.0
- Initial release
- Basic tracking functionality
- Admin settings page
- AJAX support for frontend tracking