I am trying to create a post-purchase follow-up email that has dynamic content (a recommended recipe or blog post) for each product they ordered. I believe that we should be using a dynamic table in Klaviyo for this using Metafields from Shopify or ShopifyFlow . Has anyone done this before? If so, can you share the approach you used?
Dynamic Recipe/Blog Post Content for Post Purchase Flow
Best answer by Spark Bridge Digital LLC
I’ve definitely used some show/hide conditions based on a few factors like Tags stored in Shopify with the variable “{{ event.extra.line_items.0.product.tags|default:'' }}”.
So you could then build out a If statement as:
If Order has Tag #1 {{ event.extra.line_items.0.product.tags|default:'' }} = XYZ -- show this block/recipe/blog post Else If Order has Tag #2 {{ event.extra.line_items.0.product.tags|default:'' }} = XYZ Else If --- and so on into a very long string of Else If statements for every product tag type.
It can become a beast! I typically recommend your post-purchase flow maybe have splits based on collection and have them trickle down a path that matches at least one collection in their cart that then has a recipe section that matches. That could also be done via Else/If statements as well.
A bit more info on those statements here:
https://developers.klaviyo.com/en/docs/use_conditionals_in_messages
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.