Google Tag Manager

Forum Discussion

RogierAY88's avatar
RogierAY88
Collaborator
3 months 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? 

4 Replies

  • 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 %}

  • 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.
  • Based on the Braze documentation and common pitfalls, here are a few things to double-check:

    1. Campaign vs. Test Email:
      • The Liquid tag used for the Preference Center (for example: <code>{{ preference_center.my_preference_center }}</code>) only generates a valid link when the email is sent as part of a launched campaign or Canvas message. When sending a test email, the link will not function properly.
    2. Correct Liquid Tag Syntax:
      • Ensure that your preference center name follows the allowed format (alphanumeric characters, dashes, or underscores) and that you are inserting it in the correct Liquid syntax. For example:
      <code><a href="{{ preference_center.my_preference_center }}">Edit Your Preferences</a></code>
      • Verify that there are no extra spaces or formatting issues in the code.
    3. Subscription Group Configuration:
      • Confirm that you have correctly set up the subscription groups for the respective market (in this case, based on the user’s country). The dynamic personalization of the Preference Center will rely on the configuration and mapping of these groups.
    4. Ensure Browser Support:
      • As noted in the documentation, some browsers (like the Naver Android app) do not support the Braze Preference Center. Although this shouldn’t affect most email recipients, keep it in mind if you suspect browser-related issues.
    5. Deployment:
      • Verify that the feature is enabled in your Braze dashboard under Audience > Subscriptions > Email Preference Center, and that your workspace has the correct subscription groups set up for the email channel.
    6. Dynamic Adaptation:
      • Since your Preference Center is adapted based on the country, ensure that your Liquid logic dynamically picks up the proper subscription groups. This often requires setting up conditional statements in Liquid to determine which groups the user should see, based on their profile attributes.

    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.