I’m using Shopify for the e-commerce store and using Klaviyo to handle our emailing and sales.
I’d like to displaying a country tag that come from Shopify product tag which in Klaviyo event variable we can call all the product tags by using this tag {{ event.extra.line_items.0.product.tags }}
In my case, the result of {{ event.extra.line_items.0.product.tags }} is
Is that possible to select only country value of product tags from event variable?
Thank you in advance
Best answer by Taylor Tarpley
Hi there @nyoman360and5,
Welcome to the Community!
Do you mind posting a few screenshots to help clarify how your event data is showing in your preview? If you could share one of the initial tag in the email and another showing all of the information that is pulled from the tag in the preview, this will help us understand and see the correct django tag for the solution.
Whenever handling variables and templates, it’s always worth considering the order the event data comes through from your eccommerce site into Klaviyo. Klaviyo only reflects the data your store pushes through, we don’t create it. Hypothetically, if your event data is coming in the way you describe, it should be possible to separate the tag and only show the country.
Do you mind posting a few screenshots to help clarify how your event data is showing in your preview? If you could share one of the initial tag in the email and another showing all of the information that is pulled from the tag in the preview, this will help us understand and see the correct django tag for the solution.
Whenever handling variables and templates, it’s always worth considering the order the event data comes through from your eccommerce site into Klaviyo. Klaviyo only reflects the data your store pushes through, we don’t create it. Hypothetically, if your event data is coming in the way you describe, it should be possible to separate the tag and only show the country.
Within that I need to parse out specific tags such as "Location: XXX".
Do you know how to parse for value matches inside a variable? For instance, I don't need "CEUS: 2.4 IACET CEUs" tag #1 but I do need "Dates:" and "Location:" and "Duration:" tags in the email.