Hey Community,
I'm currently looking into implementing a new Preference Center in our Emails which are adapted based on the Country where the user lives. Currently all new Preference centers are launched but I am having trouble adding these to the email. A simple copy of the liquid code does not result in the preference center showing up in the Email. I have followed all the steps from the https://www.braze.com/docs/user_guide/message_building_by_channel/email/preference_center/dnd_preference_center/#step-5-customize-your-confirmation-page. Is there maybe something I am missing?
Hi @RogierAY88 ! Would you be able to share a screenshot of how you tried implementing the Preference Center Liquid?
If you're trying to show a dynamic Preference Center based on Country, you'll need some Conditionals as well. We've actually never tried this, so we're curious what your setup looks like!
@RogierAY88Try something like this:
{% if ${country} == "US" %} {{preference_center.US_Pref}}{% elsif ${country} == "UK" %} {{preference_center.UK_Pref}}{% else %} {{preference_center.default}}{% endif %}
Two things that came up when I was doing this,
Based on the Braze documentation and common pitfalls, here are a few things to double-check:
For additional details, you can refer to the official Braze documentation on the Preference Center here:https://www.braze.com/docs/user_guide/message_building_by_channel/email/preference_center/dnd_preference_center/#step-5-customize-your-confirmation-page
Try verifying these steps and test using a live campaign (rather than sending a test email) to see if the link is generated correctly. If you continue to have issues, it might help to view your email’s rendered HTML through Braze’s campaign launcher, which should correctly display the dynamic Liquid values.