Contact Us

January 31, 2025

June 24, 2026 1:27 pm

Generating pcToken for Multiple Preference Centers in Salesforce Marketing Cloud

Share with

Watch related videos on YouTube — Search results for: Generating pcToken for Multiple Preference Centers in Salesforce Marketing Cloud

Understanding the Challenge

The challenge arises because the {!$link.PreferenceCenterUrl} does not directly provide the pcToken, and using {{get (get @root "$link") "PreferenceCenterUrl"}} fails, unlike generating the unsub URL with {{get (get @root "$link") "EmailAddressOptOutUrl"}}.

Solution Approach

While waiting for the general availability of multiple Preference Centers per Business Unit, teams can explore the hack proposed in the community or leverage access token generation as outlined in the Salesforce help documentation.

The root cause of the issue is the limitation in the current implementation of Preference Centers in Salesforce Marketing Cloud, specifically the lack of direct support for generating pcTokens for multiple centers and the case sensitivity of the system syntax.

To proceed, ensure that the syntax used is correct and consider the case sensitivity, as suggested by changing ‘URL’ to ‘Url’ in the system value.

Example AMPscript

{{get (get @root "$link") "PreferenceCenterUrl"}}

Next Steps

Given the current limitations and potential workarounds, it is essential to weigh the benefits and challenges of implementing multiple Preference Centers against waiting for a more robust, supported feature set.

Heads up: The approach to generating pcTokens and using multiple Preference Centers should be carefully evaluated in the context of your specific use case and the evolving capabilities of Salesforce Marketing Cloud.

Checklist for Implementing Multiple Preference Centers

  • Evaluate the need for multiple Preference Centers based on your subscriber management requirements.
  • Assess the current limitations of Preference Centers in Salesforce Marketing Cloud.
  • Consider the case sensitivity of the system syntax when generating URLs.
  • Explore the use of access tokens as an alternative or complementary approach.
  • Monitor Salesforce release notes for updates on multiple Preference Centers per Business Unit.
  • Test any workaround or hack thoroughly to ensure it meets your requirements without introducing unintended consequences.

What is the pcToken, and why is it necessary?

The pcToken is a parameter added to the end of the Preference Center URL, necessary for managing subscriptions and ensuring that the correct preference page is displayed to subscribers.

Can I use the {!$link.PreferenceCenterUrl} to extract the pcToken?

No, the {!$link.PreferenceCenterUrl} does not directly provide the pcToken; an alternative method must be used.

How do I generate the pcToken for multiple Preference Centers?

The generation of pcTokens for multiple Preference Centers involves using the correct system syntax, considering case sensitivity, and potentially leveraging access tokens or waiting for the feature to be generally available.

What are the limitations of using multiple Preference Centers in Salesforce Marketing Cloud?

Currently, there are limitations, including the lack of direct support for generating pcTokens for multiple centers and the requirement for a workaround or hack, which may have implications for maintenance and updates.

Genetrix Technology · Salesforce Marketing Cloud Partner

Need help shipping this in production?

Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.

Get in Touch with Genetrix →

Blogs for the

Business-Savvy!​

Let’s Connect

A 30 min no cost strategy session
with cloud support expert

Let’s Connect

A 30 min no cost strategy session
with cloud support expert