I have a flow that sends customers a Klaviyo coupon code each time they purchase a specific product.
The problem is that customers receive the same dynamic coupon code (eg {% coupon_code ‘Discount’ %} ) each time.
Is there any logic (either in the flow, or (ideally) in the email template) to count how many times the customers has purchased the trigger product or completed the flow and display the correct coupon code eg. {% coupon_code ‘Discount_1’ %} for the first time completing the flow, {% coupon_code ‘Discount_2’ %} for the 2nd time etc.