Skip to main content
Solved

Conditional split help


Forum|alt.badge.img

im hoping someone can help i have spent 3 days trying to sort this.

I have a product which is a class on my Shopify website, it has 2 variants which are 2 dates.

Im trying to set up a flow to direct them to the correct date email depending on what variant they picked.

On my last test purchase, it seemed to work when I previewed the purchases but then reverted to the yes column again. I've included a few screenshots. i am using the id number in Klaviyo to separate.

Any help truly grateful as i feel at the end of my tether tonight! 

Mel

 

 

Best answer by Mich expert

To set up a conditional split in Klaviyo that directs customers to the correct email flow based on the product variant they selected, here’s a step-by-step approach to resolve the issue:

1. Use the "Ordered Product" Trigger

The key is to base the flow on the "Ordered Product" metric, as it allows access to specific product details (like variant_id) within the trigger data.

2. Set Up Trigger Filters

When creating the flow:

  1. Select "Ordered Product" as the flow trigger.
  2. Add a Trigger Filter to limit who enters the flow:
    • Example: Trigger filter > Variant ID > equals > [specific variant ID].
    • If you don’t know the variant_id, go to the Shopify order or Klaviyo event details for a recent purchase and retrieve it from the metadata.

3. Create Conditional Splits

After setting the trigger:

  1. Add a Trigger Split (not a Conditional Split). Trigger Splits evaluate event data instead of profile data.
  2. In the split condition, choose:
    • Metric: Ordered Product
    • Dimension: Variant ID
    • Value: Enter the specific variant_id for each variant.
    • Example: Variant ID = 12345 for one branch and Variant ID = 67890 for the other.

4. Test with New Data

When testing:

  1. Use unique customer emails for each test order to avoid conflicting data from past purchases.
  2. Ensure that the test product variants have distinct IDs and match the values in your flow configuration.
  3. Preview the flow and check which branch the test customer enters.

5. Troubleshooting If Customers Fall Out of the Flow

If a customer falls out of the flow:

  • Confirm that the "Ordered Product" event is being tracked correctly in Klaviyo. Check the profile's activity log for the specific event and its metadata.
  • Verify that the variant_id in the event matches the value in your trigger split.
  • Ensure no other filters or conditions inadvertently exclude the customer from the flow.

Outcome

With these steps, the flow should correctly direct customers to emails based on the product variant they selected. If you still encounter issues, feel free to share screenshots or details about the trigger and split configurations, and I’ll help troubleshoot further

View original
Did this topic or the replies in the thread help you find an answer to your question?

6 replies

Forum|alt.badge.img
  • Problem Solver II
  • 11 replies
  • January 27, 2025

Hi ​@melanielew,

If you are doing test purchases with the same email address, then you are going to have an issue with your conditional split criterion. Say you bought yesterday the 11hrs variant but then you buy today the 14hrs variant, the system will default to the first item bought within the last 30 days.

You should change your “Conditional split” for a “Trigger split”, which is based on the event data, not what is saved on the contact’s profile. There you will see that the “Placed Order” metric is already set and can not be changed (as it is the event triggering the flow). There you set the dimension (variant_id) and its corresponding value of the item.

That should fix your issue!

 

All best,

Andrés @ Melusine Studio // Klaviyo Master Gold

melusine.studio


Forum|alt.badge.img
  • Author
  • Contributor I
  • 3 replies
  • January 28, 2025

hi thanks for that. i did look at that but it isnt giving me a varient_id option which is what threw me out a little ? ive included a screen shot

 


Forum|alt.badge.img
  • Problem Solver II
  • 11 replies
  • January 28, 2025

Hi ​@melanielew,

You should change the event triggering the flow from "Placed Order" to "Ordered Product". For this you would have to clone the flow and set the new trigger. 

 

All best,

Andrés @ Melusine Studio // Klaviyo Master Gold

melusine.studio


Forum|alt.badge.img
  • Author
  • Contributor I
  • 3 replies
  • January 28, 2025

Thanks for your response! Here's what I’ve done so far:

  • I cloned the flow and set it to "Ordered Product."
  • I added a trigger filter for one of the variants, which (in theory) should have sent the opposite variant to the "No" side.

However, when my husband test-purchased using a new email and selected the opposite variant, he completely fell out of the flow instead of being directed as expected.

I’m not sure if I’ve missed something or if there’s a glitch. Let me know if you need more details or screenshots to help troubleshoot.

Thanks again! and im so sorry im sure its super simple but i just cant figure it out ! 

 


Forum|alt.badge.img
  • Author
  • Contributor I
  • 3 replies
  • January 28, 2025

 


Mich expert
Problem Solver IV
Forum|alt.badge.img+11
  • Problem Solver IV
  • 64 replies
  • Answer
  • January 28, 2025

To set up a conditional split in Klaviyo that directs customers to the correct email flow based on the product variant they selected, here’s a step-by-step approach to resolve the issue:

1. Use the "Ordered Product" Trigger

The key is to base the flow on the "Ordered Product" metric, as it allows access to specific product details (like variant_id) within the trigger data.

2. Set Up Trigger Filters

When creating the flow:

  1. Select "Ordered Product" as the flow trigger.
  2. Add a Trigger Filter to limit who enters the flow:
    • Example: Trigger filter > Variant ID > equals > [specific variant ID].
    • If you don’t know the variant_id, go to the Shopify order or Klaviyo event details for a recent purchase and retrieve it from the metadata.

3. Create Conditional Splits

After setting the trigger:

  1. Add a Trigger Split (not a Conditional Split). Trigger Splits evaluate event data instead of profile data.
  2. In the split condition, choose:
    • Metric: Ordered Product
    • Dimension: Variant ID
    • Value: Enter the specific variant_id for each variant.
    • Example: Variant ID = 12345 for one branch and Variant ID = 67890 for the other.

4. Test with New Data

When testing:

  1. Use unique customer emails for each test order to avoid conflicting data from past purchases.
  2. Ensure that the test product variants have distinct IDs and match the values in your flow configuration.
  3. Preview the flow and check which branch the test customer enters.

5. Troubleshooting If Customers Fall Out of the Flow

If a customer falls out of the flow:

  • Confirm that the "Ordered Product" event is being tracked correctly in Klaviyo. Check the profile's activity log for the specific event and its metadata.
  • Verify that the variant_id in the event matches the value in your trigger split.
  • Ensure no other filters or conditions inadvertently exclude the customer from the flow.

Outcome

With these steps, the flow should correctly direct customers to emails based on the product variant they selected. If you still encounter issues, feel free to share screenshots or details about the trigger and split configurations, and I’ll help troubleshoot further