TapCub is live — analytics, insights and live chat, free on one platform
Help center

How do I track ecommerce purchases and revenue?

Send browsing steps as behaviour events and each completed order as a purchase from your server, with order ID, amount and currency. Event names, required properties, refunds and where revenue appears.

Product analytics2 min readLast updated Nov 4, 2026TapCub teamPart of Autocapture and the AI event inbox

Still have a question?

Could not find it? A person reads every message, usually within a few hours on business days.

Chat with us

Short answer

Send view_item, add_to_cart and begin_checkout from the browser, and send each completed order as purchase from your server with order_id, revenue and currency. Use the order ID to dedupe and send refunds with the same ID.

The events

EventSent fromRequired properties
view_itemBrowseritem_id
add_to_cartBrowseritem_id
begin_checkoutBrowserNone
purchaseYour serverorder_id, revenue, currency
refundYour serverorder_id, revenue

The browsing steps are behaviour events: they feed the purchase funnel and cart abandonment. Revenue comes only from purchase and refund.

Send purchases from your server

  1. On payment success, send purchase from your backend with the order ID, amount and currency.
  2. Use the order ID as the dedupe key. If your server retries, the same order is not counted twice.
  3. Add line items in an items array if you want item, category and brand rankings.
  4. For a refund, send refund with the same order ID.

Sending purchases from the browser loses orders when the thank-you page does not load, a blocker stops the script, or the payment page is hosted elsewhere. Server-side events are described in the developer docs.

Event and property names

The names above are the defaults. If your store already uses other names, map them in All-platform analyticsConfigurationBusiness settings on the commerce tab instead of renaming your events. Saving a new mapping rebuilds the order ledger.

The E-commerce & retail industry pack under All-platform analyticsBusinessIndustry packs adds the matching metrics, funnels, goals and dashboards in one step.

Where to see the results

All-platform analyticsBusinessCommerce & revenue shows revenue, orders, buyers, average order value, repeat rate, the per-session purchase funnel, cart abandon rate and the value left in carts. Purchases from web, app and mini program land in one ledger.

If you see cart abandonment numbers but no revenue, the browser events are arriving but no purchase has been sent from the server, or its name does not match business settings.

See also: purchase path, ecommerce KPIs and cart abandonment rate.

Did this answer your question?

We use your answers to fix and expand this page.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics