- TLC Home Home
- Discussions & Ideas Discussions & Ideas
- Product Guides Product Guides
- Knowledge Base Knowledge Base
- Developer Docs Developer Docs
- Education Education
- Blog TLC Blog
- Support Desk Support Desk
Consent parameters are the variables used in the code that generates the consent prompt and preferences pop-ups. These parameters can be set at the account level to your profiles to inherit the same configuration.
In this article:
The Consent Prompt Manager and the Consent Preferences Manager use parameters to represent translatable text that displays in the prompts. The prompts are generated using CSS, HTML, and JavaScript where these parameters are referenced using the syntax {{parameter_name}}
. When the code is generated, each {{parameter}}
is replaced by its configured value. These parameters and values can then be defined at the account level or in each profile.
Additional languages can also be configured at the account level. This makes it easy to create translations of your parameters at the account level and make them available to all profiles within your account.
Parameters are set separately for the Explicit Consent Prompt Manager and the Consent Preferences Manager.
The global consent resources are accessed from the user menu at the top-right of the screen. Only users with the Manage Profiles permission have access to this feature.
Use the following steps to access the global consent resources:
The consent features use the following built-in parameters:
{{title}}
{{message}}
{{opt_in}} / {{opt_out}}
{{confirmation_button}}
Enter a value for any of these parameters and click Apply.
Custom parameters can be added to further customize your prompts. These parameters can be referenced within the built-in parameters or within the CSS/HTML/JavaScript code.
As a best practice, avoid putting translatable text directly in the HTML or JavaScript. Instead, customize the code with{{parameters}}
and define that content using custom parameters.
Use the following steps to add a custom parameter:
The consent features are built with automatic language detection. The language setting is detected in the browser, for example, the two-character language code "de" for German. If the language detected is configured, this code presents the corresponding version of the prompt. The prompts are configured in English ("en") as the default.
Use the following steps to add a language:
The global consent parameters are saved at the account level, therefore you do not need to save and publish to save your changes. To save the changes so that they are reflected at the profile level, you must save and publish the profile.
The following steps describe the workflow for updating and publishing global consent parameters:
Steps 3 – 5 must be performed for each profile that inherits the global consent parameters.
Copyright All Rights Reserved © 2008-2021