Product analytics help you understand which products drive the most revenue and engagement on your ecommerce site.
How It Works
SimpleData automatically tracks product views when users navigate to product pages. For purchase tracking, you need to implement the trackPurchase event.
Viewing Product Analytics
- Go to your site dashboard
- Navigate to the Ecommerce tab
- View the Products section
- See top-selling products, revenue, and conversion rates
Key Metrics
Total Revenue
Sum of all sales for each product
Order Count
Number of distinct orders containing each product
Units Sold
Total quantity of each product purchased
Add to Cart
Number of times users added the product to their cart
Conversion Rate
Percentage of views that result in a purchase
Tracking Product Views
To track when a user views a product page, add this code to your product detail page:
window.simpleAnalytics.trackProductView({
productId: 'prod-456',
productName: 'Product Name',
price: 99.99,
currency: 'USD'
});If you use the WordPress/WooCommerce plugin, product views are tracked automatically.
Tracking Purchases
To track product purchases, add this code to your order confirmation page:
window.simpleAnalytics.trackPurchase({
orderId: 'ORDER-123',
revenue: 99.99,
currency: 'USD',
products: [
{
id: 'prod-456',
name: 'Product Name',
price: 99.99,
quantity: 1
}
]
});Tracking Add to Cart
To track when a user adds a product to their cart:
window.simpleAnalytics.trackAddToCart({
productId: 'prod-456',
productName: 'Product Name',
price: 99.99,
quantity: 1,
currency: 'USD'
});