Info
Content

Text macros and placeholders

Macros or placeholders are predefined words that can occur in a text. The system will automatically replace these words with other content. Macros are written in form of [macroname].

General macros

The following macros can be used for all texts in the CMP:

Macro

Description

[cmp]

Will be replaced by the CMP name from your settings

[CMP]

Will be replaced by the cmp name from your settings with uppercase first character

[domain]

Will be replaced by the domain name of the current page the visitor is on (e.g. www.mysite.com)

[Domain]

Will be replaced by the domain name of the current page the visitor is on with uppercase first character (e.g. Www.mysite.com)

[host]

Will be replaced by the domain name of the current page the visitor is on (e.g. mysite.com)

[Host]

Will be replaced by the domain name of the current page the visitor is on with uppercase first character (e.g. Mysite.com)

[vendorname]

Will be replaced by the vedor name. Can only be used in texts for the preview layer in case of dynamic content blocking.

Button macros

The following macros can only be used in the welcome text of the CMP:

Macro Description
[purposes-text] Will be replaced by a comma-separated list of purposes used in your CMP. Can only be used in the welcome text of the first layer.  If used, the CMP will no longer display the normal purpose list on the first layer.
[purposes-html] Will be replaced by a html-list (depending in list settings with or withour toggles) of purposes used in your CMP. Can only be used in the welcome text of the first layer.  If used, the CMP will no longer display the normal purpose list on the first layer.
[accept] and [accept-link] Will be replaced by the accept all button / accept all link. If the macro is used in the text, the CMP will no longer display the accept button at the usual place.
[reject] and [reject-link] Will be replaced by the reject all button / reject all link. If the macro is used in the text, the CMP will no longer display the accept button at the usual place.
[save] and [save-link] Will be replaced by the save button / save link. If the macro is used in the text, the CMP will no longer display the save button at the usual place.
[settings] and [settings-link] Will be replaced by the settings button / settings link. If the macro is used in the text, the CMP will no longer display the settings button at the usual place.

You can also define own macros using the client side configuration options.

Back to top