You will learn
Learn how to use data from Klaviyo's WooCommerce integration within your flow emails. 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 flowsPre-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 |
Abandoned Cart Reminder (Standard, Email and SMS) | 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. | |
Product Review / Cross-sell (Standard, Email only) | Fulfilled Order | You can personalize your winback emails with catalog or product feeds. For more information review Product Feeds and Recommendations. |
Customer Winback (Standard, Email only) | Placed Order | Consider back-populating your winback flow after setting it up to ensure that anyone who purchased a long time ago but hasn't purchased since can receive your winback series in a timely fashion. |
Note that to use pre-built flows utilizing SMS, you must first set up Klaviyo SMS.
Build flows from scratchBuild 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, add any tags, and 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
Emails
To add event variables in a flow email:
- Open the email in the flow editor.
- Click Edit email.
- Click Preview & test.
- Click on a property name from the Event Properties menu to copy it.
- Paste the tag into your flow email.
SMS
- In the flow builder, click the SMS or MMS you want to add an event variable to.
- Next, click Configure Content.
- Click Configure Content to view where you can add text, emojis, static or dynamic images, and GIFs to your message. Here, you can also insert profile personalization and event variables.
- You can find event variables on the right-hand side of the screen in the Previewing tab. This tab shows the 10 most recent events that you can navigate between; e.g., for a post-purchase flow, the 10 most recent Placed Order events will show here.
- The Previewing tab will also show all the associated event variables. To view the variables, click the View details button in the upper right-hand corner of the tab.
- This dropdown contains information on all of the variables for that event. By clicking any line item, you can automatically copy it to your clipboard, making it easy to add event variables into your message.
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 examples of variables by integration 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 }} |
Price for Product | {{ event.extra.Items.0.LineTotal }} |
Quantity | {{ event.extra.Items.0.Quantity }} |
Total | {{ 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 two 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 flow 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 flow filters to exclude customers who started checkouts or made purchases via Buy with Prime from receiving incorrect messaging:
- Started Checkout (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 flow 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 two 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 flow 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: