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.
Hello, thank you for your reply.
That's well noted for solution no. 1.
Concerning the second :
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.
I can't find how to configure a flow filter based on the URL structure.
Thanks
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(p'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.