Widget macros

circle-check

Macros are variables that your organization can insert into text components of widgets. Once inserted into a text component, the macro will automatically retrieve the appropriate information for the macro and insert it into the text. In this article we will cover:

circle-info

Macros are identified by the use of curly brackets {}, for example: {numberofPartners}.


Widget macro glossary

The following macros are currently available by default and can be inserted into text components:

Macro
Description

{privacyPolicyURL}

Inserts the privacy policy URL configured for the brand used in the consent flow

{websiteName}

Inserts the company name configured for the brand used in the consent flow

{numberOfPartners}

Inserts the total number of vendors added to the consent flow

{numberOfIABPartners}

Inserts the total number of IAB vendors added to the consent flow

{numberofNonIABPartners}

Inserts the total number of non-IAB vendors added to the consent flow

Insert macro into widget text

To insert a macro, click Widgets on the left-hand panel and select the Edit icon inline with a widget name.

Add a text component to the widget or select an existing text component in the widget in the preview window.

With the text component selected in the preview window, ensure the Settings tab is selected in the right-hand panel and expand the Content accordion.

Position the cursor in the text field where the macro should be added and click the {} icon in the toolbar.

Select a macro from the drop-down menu.

The selected macro will be inserted the text component. Click Save to confirm the edit.

Last updated