Hi, in a shopify shop in 3 languages, I'm looking to condition user entry into the checkout abandonment flow dedicated to one of the languages.
I'm thinking that if the trigger filter is linked to a condition that contains part of the URL such as ‘/en’. This will ensure that only profiles that have chosen the English language on the shopify shop and therefore made a checkout in English, will enter the English flow.
But I can't find this option in trigger filters or profile filters.
Is there a solution to enable this? Thanks in advance.
Fabien
Best answer by talhahussain
Unfortunately, Klaviyo does not currently offer a direct way to filter flows based on URL structure in the flow trigger conditions.
Workaround:
Instead, you can use the Checkout Started event combined with custom profile properties or UTM parameters that capture the language information.
Steps:
Track Language Information:
You’ll need to capture the user’s language in a profile property using Shopify's Liquid code or UTM parameters.
For example, add the following code in your Shopify store (checkout or page load) to capture the language in the profile:
liquid
Copy code
<script> var language = '{{ shop.locale }}'; // Capture language from Shopify _learnq.push(['identify', { 'language': language }]); </script>
Trigger Filter in Klaviyo Flow:
Create a flow (e.g., checkout abandonment) in Klaviyo.
Add a Trigger Filter based on the custom profile property language, for example:
Profile Property: language equals en (for English).
Or use language equals fr (for French), etc.
Conclusion:
You cannot filter directly by URL in Klaviyo flows, but by passing the language info to Klaviyo as a profile property, you can target language-specific flows based on that property.
Create a custom profile property in Klaviyo to store the user’s language (e.g., language = en for English). You can pass this from Shopify using Liquid or custom code.
Use this language property in your Klaviyo checkout abandonment flow by adding a trigger filter:
Profile Property: language equals en (for English flow) or any other language code.
Alternatively, if you can’t use profile properties, check the URL (e.g., /en/) in your flow trigger and filter based on the URL structure.
Unfortunately, Klaviyo does not currently offer a direct way to filter flows based on URL structure in the flow trigger conditions.
Workaround:
Instead, you can use the Checkout Started event combined with custom profile properties or UTM parameters that capture the language information.
Steps:
Track Language Information:
You’ll need to capture the user’s language in a profile property using Shopify's Liquid code or UTM parameters.
For example, add the following code in your Shopify store (checkout or page load) to capture the language in the profile:
liquid
Copy code
<script> var language = '{{ shop.locale }}'; // Capture language from Shopify _learnq.push(['identify', { 'language': language }]); </script>
Trigger Filter in Klaviyo Flow:
Create a flow (e.g., checkout abandonment) in Klaviyo.
Add a Trigger Filter based on the custom profile property language, for example:
Profile Property: language equals en (for English).
Or use language equals fr (for French), etc.
Conclusion:
You cannot filter directly by URL in Klaviyo flows, but by passing the language info to Klaviyo as a profile property, you can target language-specific flows based on that property.
It's very clear, I'm going to try this solution. Many thanks for your valuable advice.
Search saves time. Contributing compounds value.
The ROI of your reply? One helpful answer can support dozens of teams, build your credibility, sharpen your own expertise over time, foster connectivity, and create good karma – because what goes around comes around. The community is what YOU make it.