If you run an online store, you already know that raw pageview counts tell you almost nothing about how customers actually buy. A visitor might land on your homepage, browse three product pages, add something to their cart, and then vanish. Without funnel tracking, you have no idea where or why they left. Matomo gives you the tools to map every step of the purchase journey, identify exactly where customers drop off, and make data-driven improvements that directly impact revenue.
Why E-Commerce Stores Need Funnel Tracking Beyond Pageviews
Pageviews are a vanity metric for e-commerce. Knowing that your product page got 10,000 views last month is meaningless if you don’t know how many of those visitors proceeded to add the item to their cart. Funnel tracking connects the dots between browsing and buying. It answers critical questions: Are customers abandoning at the shipping cost reveal? Is your payment form causing friction? Do mobile users drop off at a different stage than desktop users?
Traditional analytics platforms often lock advanced funnel features behind expensive tiers. Matomo provides full funnel visualization out of the box with its Funnels premium feature, or you can build a solid version using goals and custom reports in the open-source edition. Either way, you own the data completely.
Setting Up Matomo for E-Commerce: The Basics
Before you can track funnels, you need Matomo’s e-commerce tracking enabled. In your Matomo dashboard, navigate to Administration > Websites > Manage and toggle the Ecommerce setting to “enabled” for your site. This unlocks dedicated e-commerce reports including product performance, revenue tracking, and the e-commerce log.
On the implementation side, you need to push e-commerce data to Matomo via its JavaScript tracking API. For each transaction, you call _paq.push(['trackEcommerceOrder', orderId, grandTotal]). For cart updates, you use _paq.push(['trackEcommerceCartUpdate', cartTotal]). Product views are tracked with _paq.push(['setEcommerceView', productSku, productName, categoryName, price]). These calls feed the data that powers your funnel analysis.
Defining Your Funnel Stages
A standard e-commerce funnel has four core stages, each representing a distinct intent signal from the customer.
Stage 1: Product View
This is the top of your funnel. A visitor has landed on a specific product page and is evaluating whether the item meets their needs. Track this by firing setEcommerceView on every product page load. In a typical store, you might see 50,000 product views per month.
Stage 2: Add to Cart
The visitor liked what they saw enough to add it to their cart. This is tracked via addEcommerceItem followed by trackEcommerceCartUpdate. From our 50,000 product views, a healthy store might see 7,500 add-to-cart actions, representing a 15% progression rate.
Stage 3: Checkout Initiated
The customer has moved to the checkout page and started entering their details. You can track this as a Matomo goal triggered by visiting the /checkout/ URL pattern. Of those 7,500 cart additions, roughly 4,500 might reach checkout, a 60% progression rate.
Stage 4: Purchase Complete
The transaction is done. Tracked via trackEcommerceOrder, this final stage might capture 3,150 completed purchases from those 4,500 checkout initiations, yielding a 70% checkout-to-purchase rate and an overall 6.3% conversion from product view to purchase.
Configuring Goals and Custom Dimensions in Matomo
Goals in Matomo let you define specific conversion actions. For funnel tracking, create a goal for each stage. Go to Administration > Goals > Add a new Goal. For the checkout goal, set the trigger to “Visit a given URL” and enter your checkout page path. For the purchase goal, use “Track an e-commerce order” as the trigger type.
Custom dimensions add another layer of insight. Create a visit-scoped custom dimension called “Customer Type” to distinguish between first-time buyers and returning customers. Create an action-scoped dimension called “Product Category” to see which categories have the healthiest funnels. Configure these under Administration > Custom Dimensions, then pass values via _paq.push(['setCustomDimension', dimensionId, 'value']).
With goals and dimensions configured, you can segment your funnel data. For example, you might discover that returning customers have a 12% product-view-to-purchase rate compared to 3.8% for new visitors, suggesting your acquisition traffic needs better qualification.
Analyzing Drop-Off Points With Real Data
The real value of funnel tracking is finding where you are losing money. Consider this example from a mid-sized apparel store running Matomo:
- Product View to Add to Cart: 15% progression. This was below the industry benchmark of 20%. Investigation revealed that product images were low quality on mobile. After upgrading images and adding a zoom feature, the rate improved to 19%.
- Add to Cart to Checkout: 60% progression. The 40% drop-off was traced to unexpected shipping costs shown on the cart page. Adding a free-shipping threshold notification increased progression to 68%.
- Checkout to Purchase: 70% progression. The remaining 30% loss correlated with users on a specific payment gateway. Switching to a faster checkout integration recovered 8 percentage points.
Use Matomo’s Visitors > Visits Log to drill into individual sessions at each drop-off point. You can see the exact sequence of pages visited, time spent on each, and where the session ended. Combine this with the Behavior > Transitions report for a visual flow of where visitors go after leaving a funnel stage.
Cookie-Free E-Commerce Tracking With Matomo
Privacy regulations like GDPR and ePrivacy have made cookie consent a significant conversion barrier. If your consent banner causes 30% of visitors to reject tracking, your funnel data has a massive blind spot. Matomo solves this with its cookieless tracking mode.
Enable it by adding _paq.push(['disableCookies']) before the tracking call. Matomo will use a combination of IP address (hashed and not stored), browser configuration, and other non-identifying attributes to recognize visits without storing anything on the user’s device. This means you can track your complete e-commerce funnel without requiring cookie consent in most jurisdictions, capturing data on 100% of your visitors instead of the 60-70% who accept cookies.
For e-commerce stores, this is transformative. Your funnel data becomes complete and unbiased, giving you a true picture of customer behavior rather than a skewed sample of consent-giving visitors.
Integration With WooCommerce
If you run WooCommerce, the easiest path is using the WooCommerce Matomo Integration or the Matomo for WordPress plugin, which automatically fires the correct tracking calls at each funnel stage. Product views, cart updates, and order completions are all handled without custom JavaScript.
For manual integration, hook into WooCommerce actions. Use woocommerce_after_single_product to fire product view tracking, woocommerce_add_to_cart for cart events, and woocommerce_thankyou for completed orders. Pass product SKUs, names, categories, and prices directly from WooCommerce’s data layer into Matomo’s tracking calls. This gives you full control over what data is sent and when.
Similar integration patterns exist for Shopify (via custom theme snippets), Magento (through Matomo’s dedicated extension), and other platforms. The tracking API calls remain the same regardless of your e-commerce backend.
Key Takeaways and Optimization Tips
Implementing funnel tracking is only the beginning. Here are practical tips to get the most from your Matomo e-commerce data:
- Segment everything. A single funnel view hides important differences. Break it down by device type, traffic source, customer type, and product category. The insights are always in the segments.
- Set up alerts. Configure Matomo custom alerts to notify you when a funnel stage drops below its baseline. A sudden checkout-to-purchase decline could indicate a broken payment integration.
- Test one change at a time. When you identify a drop-off point, make a single change and measure its impact over at least two weeks before moving to the next optimization.
- Use cohort analysis. Compare funnel performance across weekly cohorts to identify trends. Seasonal patterns, marketing campaigns, and site changes all affect funnel behavior differently.
- Go cookieless from day one. The data completeness you gain from cookieless tracking outweighs any minor reduction in visit-level accuracy. Your funnel analysis will be significantly more reliable.
E-commerce funnel tracking with Matomo puts you in control of both your analytics and your data. You get the granular insight needed to optimize every step of the customer journey, without sending that data to a third party or fighting with cookie consent banners. For any online store serious about conversion optimization, it is an essential setup.
