Skip to content

How to use eCommerce Events

eCommerce recommended events use a shared, order-level schema, which lets Braze build reliable features on top of your eCommerce data—including user profiles, segmentation, messaging, reporting, and AI-powered recommendations. The sections in this article cover how to use each capability in Braze.

See Event schemas for property requirements and data types, and Event validation and troubleshooting for what happens when an event fails validation.

Because eCommerce events follow a predictable schema, Braze can build reliable features on top of them, from revenue tracking and pre-built Canvas templates to AI-powered recommendations. The following sections give you a quick overview of each capability with links to the full documentation.

Commerce tab

The Commerce tab on each user profile combines two modules: Order activity (calculated revenue and order metrics) and Active cart (the latest cart from ecommerce.cart_updated events).

Order activity

The Order activity module surfaces three calculated metrics that update in real time as events are processed. The order-level model of these calculations cleanly separates product prices from total order value.

Metric Formula
Total Revenue sum (order_placed.total_value) − sum (order_refunded.total_value)
Total Orders count (distinct order_placed) − count (distinct order_cancelled)
Total Refund Value sum (order_refunded.total_value)

Active cart

The Active cart module shows the latest cart on the user profile. That view is especially helpful while you test. You can use it to confirm cart contents, validate cart-based journeys, or verify that ecommerce.cart_updated events are updating the profile as you expect.

Active cart includes the following:

  • Cart ID — Identifier for the cart that last received an ecommerce.cart_updated event.
  • Last updated — Timestamp of the most recent cart update.
  • Total cart value — Total value of the line items in the current cart.
  • View products — A link to open the list of products in the cart (up to 50 products).

eCommerce orchestration

Segmentation

eCommerce events behave like custom events, so all existing custom event filters work immediately. For example, you could filter by “Has performed custom event ecommerce.order_placed more than X times.”

For targeting based on nested product data (such as specific product IDs, variant names, or price thresholds), use Segment Extensions with nested event property filtering. This lets you build audiences like “users who purchased product SKU-123 in the last 90 days” or combine criteria across different properties of the same order.

Triggering

You can use performed custom event triggers with eCommerce events throughout Braze, just like with other custom events. For abandoned cart flows, use the Perform Cart Updated Event trigger to properly capture cart updates.

Additionally, Braze offers a dedicated Places Order trigger, which lets you start journeys or take actions based on any placed order, or on orders that include a specific product. You can filter this trigger by product name, product_id, or variant_id to target specific purchase scenarios. For more information, see Action-based delivery.

Places Order trigger with a selected option to place any order.

Liquid personalization

eCommerce events support Liquid personalization the same way custom events do; you can reference event properties directly in your messaging. To pull product images, pricing, or other catalog data into your messages, join your catalog with the event using product_id or variant_id as the linking identifier. The {% shopping_cart %} Liquid tag lets you loop through a user’s current cart contents for abandoned cart reminders, checkout nudges, or order confirmations. For ready-to-use code samples, see eCommerce use cases.

For a no-code alternative, drag-and-drop product blocks are available in the early access program.

eCommerce Canvas templates

Braze provides ready-to-use Canvas templates pre-configured with eCommerce recommended events as entry, exit, and conversion criteria, so you can launch lifecycle flows without custom setup. Each template ships with drag-and-drop email designs and supports drag-and-drop product blocks (currently in early access). For detailed use cases and Liquid examples, see eCommerce use cases.

These templates cover the most common eCommerce lifecycle flows. Use them as a starting point, then customize the timing, channels, and creative for your audience.

Re-engages users who viewed a product but didn’t add it to their cart.

Use this template when you want to bring browsers back to consider products they recently viewed but didn’t act on.

Setting Value
Entry event ecommerce.product_viewed
Exit events ecommerce.product_viewed, ecommerce.cart_updated, ecommerce.checkout_started, Placed Order
Conversion event Placed Order

Recovers users who added items to their cart but didn’t begin checkout.

Use this template when you want to remind users about items in their cart and drive them back to complete checkout.

Setting Value
Entry event ecommerce.cart_updated
Exit events ecommerce.cart_updated, ecommerce.checkout_started, Placed Order
Conversion event Placed Order

Recovers users who started checkout but didn’t complete the purchase.

Use this template when you want to recover purchases at the highest-intent stage of the funnel.

Setting Value
Entry event ecommerce.checkout_started
Exit event Placed Order
Conversion event Placed Order

Confirms a successful purchase and follows up with a feedback survey to drive review collection and post-purchase engagement.

Use this template when you want to streamline post-purchase communication and gather customer feedback in a single workflow.

Setting Value
Entry event ecommerce.order_placed
Conversion event Start Session or ecommerce.product_viewed

Customize templates

These templates are designed to be a starting point. Common customizations include:

  • Customize the email: Each template includes a pre-configured email built with the drag-and-drop editor which is fully editable to match your brand and content.
  • Add channels: Pair email with push, SMS, or in-app messages for cross-channel reinforcement.
  • Add delays and decision splits: Branch users by behavior (for example, high-value cart compared to low-value cart) or wait periods between messages.
  • Swap creative: Replace the included email template with your brand’s visual style.
  • Use product blocks: Use drag-and-drop product blocks (in the early access program) to dynamically render abandoned cart contents or browsed products without writing custom Liquid.

For more advanced lifecycle strategies, including Liquid personalization examples, see eCommerce use cases.

eCommerce reporting

eCommerce recommended events power the same revenue surfaces customers already use today. When your integration is sending eCommerce events, the following reports include eCommerce revenue automatically:

Report What it shows
Revenue Report Total revenue, average daily revenue, daily purchases, and revenue per user over time across all sources for your selected date range and apps.
Last Touch Attribution Revenue dashboard Revenue attributed to the last campaign or Canvas a user interacted with before placing an order. Touch events include email clicks, push opens, Content Card clicks, in-app message clicks, and SMS or WhatsApp short link clicks.
Campaign and Canvas analytics Total revenue attributed to a specific campaign or Canvas within the primary conversion window.
Conversions report Revenue tied to conversion events on campaigns and Canvases.
Note: To count ecommerce.order_placed revenue, the campaign or Canvas must use the “Place Order” conversion event type as its conversion event.
Segment Insights Revenue comparisons across segments in the segment insights dashboard.
Report Builder Revenue metrics in custom reports built in Report Builder.
Dashboard Builder Revenue metrics in custom dashboards built in Dashboard Builder.

For non-user calculated fields (for example, campaign or Canvas revenue), revenue is calculated the same way across all reports: price multiplied by quantity per product in the order, summed across the products in each order_placed event.

BrazeAITM

Predictive Events, Predictive Churn, and item recommendations support eCommerce events as target events and signals, and have a dedicated “Order Placed” option. The standardized schema makes these models more reliable because the data is consistent across your user base.

Export data

Braze offers several ways to export eCommerce event data for use in your data warehouse, BI tools, or downstream systems. eCommerce recommended events are exported through the same channels as your other event data.

Export path What’s included
Currents eCommerce events stream as custom events; search the ecommerce.* namespace to find them. Products from each order are available as purchases.
Snowflake Data Sharing eCommerce events are shared as custom events; search the ecommerce.* namespace to find them. Products from each order are available in the purchases table.
Export segment data to CSV CSV export of segment members. To include eCommerce events, select them by name from the custom events dropdown.
Export user profile by Segment (API) User profile data for segment members, returned via API. eCommerce events are included as custom events.

How do I segment users by a specific product?

The segmenter allows you to filter by the number of times a user performed an eCommerce event. To filter by specific product properties (such as product_id or product_name), use Segment Extensions, which support nested event property filtering. For example, you can find all users who purchased product “SKU-123” in the last 90 days.

New Stuff!