E-commerce Analytics: How to Track Revenue, Orders, and Your Shopping Funnel
Pageviews tell you how many people visited your store. E-commerce analytics tells you how many of them bought something, how much they spent, which products they actually purchased, and — crucially — which step in your checkout process is losing the most potential customers.
This guide covers what statpx e-commerce analytics tracks, how to implement the four tracking calls, how to read the dashboard, and how to use funnel drop-off data to fix the specific steps costing you revenue.
What E-commerce Analytics Covers
statpx e-commerce tracking gives you a complete picture of your store's financial performance and shopper behavior in one dashboard. The core metrics are:
- Revenue — total value of completed purchases in the selected date range
- Orders — count of unique purchase events recorded
- Average Order Value (AOV) — revenue divided by orders; the most useful per-transaction metric
- Cart-to-view rate — what percentage of product views result in an add-to-cart action
- Top products table — revenue and order count broken down by product name
- Daily revenue chart — revenue plotted over time to surface trends, spikes, and dips
These metrics are built from four funnel stages: product view, add to cart, begin checkout, and purchase. Each stage is tracked with a separate _st() call that you add to your store's JavaScript at the relevant moment.
The 4-Step Funnel and How to Implement It
The e-commerce funnel maps the path from product discovery to completed purchase. Each step fires a tracking call with structured data about the interaction:
Step 1 — Product view
Fire this when a visitor loads or views a product. On a product detail page, this typically belongs in a script tag at the bottom of the page, or in the component's mount event for SPA storefronts:
Step 2 — Add to cart
Fire this inside the click handler for your "Add to cart" button. Include quantity so the data reflects actual cart value, not just a binary add event:
Step 3 — Begin checkout
Fire this when the visitor proceeds from the cart to the checkout flow — typically on the checkout page load, or when they click "Proceed to checkout":
Step 4 — Purchase
Fire this on your order confirmation page, after the payment has been confirmed. This is the conversion event — it records revenue and completes the funnel:
Use a consistent order_id across the begin_checkout and purchase calls so statpx can match them as the same transaction. If your platform generates order IDs only after payment is confirmed, use a session-level cart token for the begin_checkout call instead.
Using Funnel Drop-off to Fix Your Checkout
The funnel view in your statpx e-commerce dashboard shows the percentage of sessions that reach each stage and the drop-off rate between consecutive stages. This is where the actionable insight lives. Each transition in the funnel has a distinct diagnostic meaning:
High view-to-cart drop-off
If a large percentage of visitors view products but few add to cart, the problem is on the product page itself. The most common causes are: pricing that seems high without adequate value justification, insufficient product information (poor photos, vague descriptions, no specifications), lack of social proof (no reviews or ratings), or an unclear or hard-to-find "Add to cart" button. Fix the product page — improve imagery, add reviews, clarify pricing — and watch the cart rate respond.
High cart-to-checkout drop-off
Visitors who add to cart have demonstrated purchase intent. If they're leaving before checkout, the issue is usually trust or pricing anxiety: unexpected shipping costs revealed at cart, no guest checkout option, or a lack of security signals near the cart total. Add a shipping cost estimator to the cart page and make sure trust badges and return policy links are visible before visitors click "Proceed."
High checkout-to-purchase drop-off
This is the most expensive drop-off point. Visitors who've reached checkout are close to buying — losing them here means losing someone who was ready. Common causes are: too many required fields, payment options not matching visitor preferences, slow page load on the payment step, or error messages that don't clearly explain how to fix validation failures. Pair funnel data here with funnel analysis to drill into the specific checkout steps causing abandonment.
E-commerce vs. Conversion Goals: When to Use Each
statpx offers two ways to track outcomes: e-commerce events and conversion goals. They serve different purposes and work best together rather than instead of each other.
Use e-commerce tracking when you need revenue-specific data: total revenue, AOV, top products by revenue, cart rate, and the four-step shopping funnel. E-commerce tracking understands monetary value — it knows the difference between a $10 sale and a $500 sale and reflects that in your revenue figures. If you sell products or subscriptions, e-commerce tracking is essential.
Use conversion goals for binary conversion events that don't have a monetary value attached — newsletter signups, free trial registrations, demo requests, contact form submissions. Goals count occurrences and track conversion rate over time, but they don't aggregate revenue. They're also simpler to set up for non-transactional actions where you just want to know "did this happen."
For most e-commerce sites, the right setup is both: e-commerce events for the purchase funnel, and conversion goals for top-of-funnel actions like email capture that feed into eventual purchases. This gives you full visibility from first touch to completed transaction.
Track your revenue, orders, and shopping funnel — free with statpx
Four JavaScript calls. No plugins, no payment processor integrations, no Google Tag Manager. Your e-commerce data starts flowing immediately.
Start tracking revenue free →The Bottom Line
E-commerce analytics turns "how many people visited" into "how much revenue did we make and why." The four-step funnel — view, add to cart, begin checkout, purchase — gives you a precise map of where shoppers are falling off, so you can direct your optimization effort at the stage with the highest impact. Most checkout problems are fixable once you know exactly where they occur. Add the four _st() calls to your store today, let the data accumulate for a week, and look at your funnel. The drop-off point you find will likely be the most valuable thing you've learned about your store all year.