How to use WooCommerce data in flows
You will learn
Learn how to use data from Klaviyo's WooCommerce integration within your flow emails and SMS messages. When you integrate your WooCommerce account with Klaviyo, you'll have access to customer and purchase data that you can use to personalize your customers' experience.
To see what events we sync from WooCommerce, see our article on reviewing your WooCommerce data.
Pre-built flows
We offer a variety of pre-built flows in the Klaviyo flow library. To get there, head to Flows > Create flow in Klaviyo. These flows include all the event data you'll need pre-filled in each template. Some of our most popular pre-built flows for WooCommerce are listed in the table below:
Flow Name / Link(s) | Flow Trigger | Notes |
Started Checkout | Abandoned cart flows can use either Started Checkout or Added to Cart as the trigger; our standard flow uses Started Checkout. | |
Abandoned Cart Reminder (Added to Cart trigger, Email and SMS) | Added to Cart | Customers who've clicked Added to Cart but haven't started a checkout may have been browsing more casually. |
Viewed Product | Klaviyo is only able to track the browsing activity of "known browsers" which are browsers who have visited and engaged at least once before. There are two key ways we are able to identify a site visitor: if someone has clicked through a Klaviyo email to your website, or if someone has subscribed or opted-in through a Klaviyo form. | |
Fulfilled Order | You can personalize your product review, cross-sell, and winback emails with catalog or product feeds. For more information review Product Feeds and Recommendations. | |
Placed Order | Consider adding past profiles to your winback flow after setting it up to reach past purchasers who haven't bought again. Eligible profiles enter at the point that matches when they placed their order. Purchasers who are already beyond the flow's timeline are not added. |
Note that to use pre-built flows utilizing SMS, you must first set up Klaviyo SMS.
Build flows from scratch
- To build a flow from scratch, navigate to the Flows tab in Klaviyo.
- Click Create flow.
- Select Build your own.

- Name your flow and add any tags. Click Create manually if it appears. Otherwise, click Create flow.
- Next, design your flow. You can trigger your flow based on any events synced from WooCommerce.

- To learn more about flow triggers and filters, and adding steps to your flow, consult our Getting started with flows guide.
- Next, you'll create flow email content (or SMS content if desired). Consult the section below to learn how to add personalization using WooCommerce event variables.
- When you're done designing your flow emails, you're ready to learn how to set your flow live.
How to find event variables
Event variables in these messages come from the WooCommerce event that triggers the flow. Use a metric-triggered flow and make sure the metric has recorded an event before previewing its data.
Emails
To add event variables to a flow email you've created in the drag-and-drop editor:
- In the flow builder, select the email you want to personalize.
- In the Template section, click Edit.
- Click Preview.
- Under All properties > Event properties, click a property name to copy its tag.

- Click Done to return to the editor, then paste the tag into your flow email.
- Click Preview again to check that the event data appears as expected. When you're finished, click Done, then Exit to leave the editor.
The preview shows the data for the selected event, so values and available properties can differ between events. List entries are numbered starting at 0. For instance, {{ event.extra.Items.0.Name }} shows the first item's name in a WooCommerce Started Checkout event. The 0 indicates the first item in the list.
To use event variables, you must copy them exactly. Event variables are case-sensitive, and the slightest deviation from how it appears in the preview window could cause the variable not to work.
SMS
- In the flow builder, click the SMS or MMS you want to add an event variable to.
- In the Content section, click Edit.

In the message editor, you can add text, emojis, static or dynamic images, and GIFs to your message. Here, you can also insert profile personalization and event variables.
- Click Preview. Use the arrows to choose from up to 10 recent events for the flow's trigger metric. For example, a post-purchase flow triggered by Placed Order shows recent Placed Order events.
- Expand All properties and find Event properties to see the variables for the selected event.

- Click a property name to copy its tag to your clipboard.

- Click Done to return to the editor, then paste the tag into your message.
- Click Preview again to check the personalized message. When you're finished, click Done, then Next to save and continue.
Common event variables for WooCommerce
The syntax for different event variables depends on both the integration and event metric. You can see the syntax for all of the available variables for a given event by scrolling through the preview window and clicking on the different entries.
Some common WooCommerce variables are listed below for a Started Checkout event. Keep in mind that the exact variable may differ depending on the metric used to trigger the flow.
WooCommerce | |
Product Name/Title | {{ event.extra.Items.0.Name }} |
Product URL | {{ event.extra.Items.0.URL }} |
Image | {{ event.extra.Items.0.Images.0.URL }} |
Line-item total (excluding tax) | {{ event.extra.Items.0.LineTotal }} |
Quantity | {{ event.extra.Items.0.Quantity }} |
Line-item total (including tax) | {{ event.extra.Items.0.TotalWithTax }} |
You can rebuild carts from an abandoned cart flow in WooCommerce by using the parameter ?wck_rebuild_cart={{ event.extra.CartRebuildKey }}.
Are you using Amazon Buy with Prime?
If you're using Buy with Prime to power payment and fulfillment for any of the products on your store, you'll need to make some additions to your flows (whether pre-built or scratch), and create some new flows. First:
- Integrate Buy with Prime with Klaviyo to bring Buy with Prime data into your Klaviyo account.
For your abandoned "Started Checkout" flow:
- Create 2 separate abandoned cart flows: one triggered by WooCommerce's checkout event (the pre-built flow listed above), and one triggered by Buy with Prime's checkout event. For your Buy with Prime flow, read How to create an abandoned cart flow for Amazon Buy with Prime.
- For your WooCommerce abandoned cart flow, add the following profile filter to exclude customers who made purchases via Buy with Prime from receiving incorrect messaging:
- Placed Order (Buy with Prime) zero times since starting this flow.
For your abandoned "Added to Cart" flow:
- Add the following profile filters to exclude customers who started checkouts or made purchases via Buy with Prime from receiving incorrect messaging:
- Checkout Started (Buy with Prime) zero times since starting this flow AND
- Placed Order (Buy with Prime) zero times since starting this flow.
- No second flow for Buy with Prime is needed, since Buy with Prime does not have an Added to Cart event.
For your browse abandonment flow:
- When you create your browse abandonment flow (you only need to create one flow, since it's triggered by the Viewed Product event) add the following profile filters to incorporate Buy with Prime data into your flow:
- Checkout Started (Buy with Prime) zero times since starting this flow AND
- Placed Order (Buy with Prime) zero times since starting this flow.
For your customer winback flow:
- Create 2 separate winback flows: one triggered by WooCommerce's Placed Order event (as listed above) and one triggered by Buy with Prime's Placed Order event to account for customers who placed their original order with Buy with Prime. For your Buy with Prime winback flow, read How to create a winback flow for Amazon Buy with Prime.
- When you create your WooCommerce winback flow, add the following profile filter to exclude customers who made purchases via Buy with Prime from receiving incorrect messaging:
- Placed Order (Buy with Prime) zero times since starting this flow.
Additional resources
Learn more about WooCommerce:
- WooCommerce data reference
This article covers the data that is synced when you integrate your WooCommerce store with your Klaviyo account.
- How to set up static coupons for WooCommerce
Learn how to create and use static WooCommerce coupon codes to incentivize new sign-ups and encourage past customers to make another purchase.
- Troubleshooting your WooCommerce integration
Learn how to solve issues with your WooCommerce integration setup by following the relevant troubleshooting scenario described below. If you are encountering issues not on this list, please reach out on the Community or to our Support Team.