Solved

How to exclude discount codes from e-mail flow (abandoned shopping cart)?

  • 24 November 2021
  • 3 replies
  • 109 views

Badge

Hi there,

I would like to exclude customers from my e-mail flow who already typed in a discount code but left the shopping cart. My idea was:

 

Trigger: “Discount codes” → “is empty” , type “list”. 

Am I right?

 

Thanks for help.

 

Cheers,

Dennis

icon

Best answer by Dov 24 November 2021, 16:21

View original

3 replies

Userlevel 7
Badge +47

Hello @Exclude discounts e-mail flow,

Thanks for sharing this information with us.

The “is empty” filter is not referring to what the user has (or has not) inputted on the checkout page, but rather, speaks to the custom properties section of a user profile. Specifically, “is empty” refers to a Klaviyo property with no value. For example, if you had “Shopify Tags” as a property on a user profile, but with nothing else in the value section. The “list” data type (also generally referring to the custom properties section of the user profile) identifies value(s) in a Klaviyo property, when they are organized in an array format i.e. [“item1”,”item2”,”item3”] and so on.

For more information on properties please see our guide here. We also had a guide describing the various data types here

To speak to your original question, if you are using a static coupon code from your ecommerce platform, you can include a flow filter (or an additional filter, if you want to target a specific email) that checks whether or not that person has placed an order that used that discount code. If they have, this filter: Placed Order zero times since starting this flow where Discounted (or discount code) equals “name of code” (also depicted in the gray box in screenshot below) will remove them from the flow.

Setting a additional filter so only those who haven't used the coupon receive a reminder email

Badge

Hi Dov,

thank you for your reply. :-)

 

Beside the filter “Placed Order zero times since starting this flow” … If am I right, this is the solution:

Trigger setup → Trigger filters → Discount codes → Doesnt equal “vouchercode” → Type: Text

These customers wont receive an e-mail?

Thank you.

Cheers

 

Userlevel 7
Badge +47

Hi @Exclude discounts e-mail flow,

You’re very welcome. I am glad that was helpful.

Yes, as long as the code is static coupon code from your ecommerce platform (not a unique-coupon code created in Klaviyo), you can use that logic: 

Trigger setup → Trigger filters → Discount codes → Doesnt equal “vouchercode” → Type: Text

The reason a Klaviyo-generated code will not work in this case is because we (Klaviyo) can only filter users based on the coupon code itself (not the coupon code name). In the case of a static coupon, the coupon code name and code itself will always be the same so the filter works. For example, WELCOME50. The user would use WELCOME50 at checkout as well, and so we can filter off of WELCOME50 using the Placed Order metric.

However, with a Klaviyo-generated code (which produces a unique coupon code for each recipient) filtering would require using each unique generate coupon code. For example, if the unique coupon code is again WELCOME50 but each time a user receives an email it would be a unique code, in other words, WELCOME50 is not what’s being inputted at checkout for each user. They are placing their orders with a separate unique code. You can imagine if you have hundreds or thousands of customers going through this flow, each getting a unique code, you would have to set up a discrete filter for each unique code which is unsustainable.

I hope that helps!

 

Reply