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.
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.
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.
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.