Google Tag Manager

Forum Discussion

RogierAY88's avatar
RogierAY88
Collaborator
26 days ago

Linking to the new Preference Center

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? 

  • E_Finn's avatar
    E_Finn
    Collaborator

    Two things that came up when I was doing this,

    1. Put it in a link, the pref center liquid should replace the url portion of a link.
    2. The pref center links only work on actual sent emails, not test emails.
  • RogierAY88Try something like this:

    {% if ${country} == "US" %}
      {{preference_center.US_Pref}}
    {% elsif ${country} == "UK" %}
      {{preference_center.UK_Pref}}
    {% else %}
      {{preference_center.default}}
    {% endif %}

  • 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!