Updates

Migration Guide for the New API System

4min

In this guide, we’ll explain how to migrate to the new API system, showing you example code.

The migration must be completed by March 10, 2025.

Be careful not to use both callback systems simultaneously.

Migration for Users with CMP Based on TCF

Below is an example of the previous API system to read the current and/or updated consent.

Text


The structure of the new command is as follows:

Text


As you can see, the main difference lies in the structure and available arguments in the callback, which is added to the new global variable. All APIs from the previous command are accessible through the new command as shown in the example above. For further questions, please contact us at [email protected].

😬

Please note that to read cookieConsents, it is necessary to configure the cookies you use through the configurator. You can use our cookie scanner to help identify and recognize some of the cookies you use; any unrecognized ones must be specified.

Migration for Users with CMP Based Only on Google Consent Mode without TCF

Text


The structure of the new command is as follows:

Text


As you can see, the main difference lies in the structure and available arguments in the callback, which is added to the new global variable. All APIs from the previous command are accessible through the new command as shown in the example above. For further questions, please contact us at [email protected].

Updated 04 Nov 2024
Doc contributor
Did this page help you?