Create New Message Variable

Admin access or Domain access to property group with feature access to message/scenario partition set management

Message variables allow your organization to utilize a single message for a property group with programmatic customizations for each property in the property group. Commonly, these message variables are used by organizations for site-specific branding of the messages. In this article, we will cover how to create a new message variable for a property group's message.

Message variables are only available for messages within property groups. Messages built in individual properties will not have the option to add message variables.

Click Dialogue on the top navigation bar and select Property Groups from the subsequent page.

Navigate to a property group on the subsequent list and click the launch icon inline with the property group name.

Click GDPR on the property group navigation bar and select Web/Webview under the TCF v2 header from the subsequent dropdown menu.

Alternatively, create Message variables for any of the following by navigating along the below paths:

• GDPR > OTT/CTV • GDPR > Web/Webview (under Non IAB Messages header) • CCPA > Messages V2

Click the ellipsis inline with the message on the page and select Edit. Alternatively, click + New Message if the property group does not have an existing message.

From the message builder page, click Variables on the right-hand panel. Use the provided fields to input a variable name and a default value for the variable.

Click Add Variable when finished.

$$ will be wrapped around your variable name to denote that the name you input is a message variable. Be sure to include the$$before and after the variable name when using the message variable (e.g.$$accept_button$$).

The message variable will be added to the Master Variable List and every property in the property group.

Expand each property in the Variables panel to set the message variable value for each property. The message variable value will automatically default to the default value you previously set unless otherwise edited.

After you have set the message variable value per property in the property group, insert the message variable name in the message builder settings and/or custom CSS whenever the message variable should be called.

Click Save Message when finished.

In the above example, we want the background color for the accept button to change depending on which property an end-user visits.

The message variables will be pushed to the properties in the property group based on your configuration. When viewing the message builder from any of these individual properties the message builder will display the value of the message variable you set in the property group.