New here, and was wondering if anyone knew the answer:
I’m building a price drop flow, and wanted to know if it works to insert the dynamic price drop event code in the subject of the email line - like this Price Drop Alert: {{ event.price_drop_percent }}% off!
Thanks in advance!
Daniel
Best answer by retention
Hi @Daniel F13 - it should work! All Profiles properties (and Custom Properties) as well as the Event properties for a recipient that works in your Template should also work in the Subject and Preview Text.
You can test this by sending yourself a Preview email and selecting a real event to test just to be sure.
Hi @Daniel F13 - it should work! All Profiles properties (and Custom Properties) as well as the Event properties for a recipient that works in your Template should also work in the Subject and Preview Text.
You can test this by sending yourself a Preview email and selecting a real event to test just to be sure.
Awesome! Thank you, @retention! It’s a little hard to test, only because it’s a price drop trigger and that event has not occurred yet, but your info is good to know! TYSM!
@retention thanks again - quick question, in the body of the price drop email, I’m trying to use dynamic event tags, like this:
Save ${{ event.price_drop_amount }}! Your {{ event.product_name }} was ${{ event.original_price }} and today it's ${{ event.reduced_price }}!
but it seems that only the reduced price one is populating - as is evident from the faint white box around it and the truncated text in the attached screenshot.
I don’t have any data to populate email preview with, but wondering if the other tags will eventually populate like the reduced price one is now.
@Daniel F13 - It should work, but make sure you’re adding those variables “cleanly” - the best way to do this is in the “source” of the text block. Sometimes when you add variables in the text editor, it will add the HTML version of those brackets because it misinterpreted that you wanted to literally show the brackets and not a Template variable.
To edit the “source” of a text block, click on the “Source” icon in the text editor and add in the variable where it should be.
Here’s how to edit the “source” on the legacy editor: