Usercentrics - PUBLIC

Browser UI/TCF 2.0 Functions

The object windows.usercentrics is only available for CMP v1.

 

In CMP V2 (Both in our Predefined UI and TCF 2.0), currently, we just have 4 available functions:

 

 

UC_UI.showFirstLayer(); → This function shows the first layer.

 

 

  • UC_UI.showSecondLayer(); → This function shows the second layer.

 

 

  • UC_UI.acceptService('ID'); → This function will accept the consent of service that is not part of the IAB TCF.

For Example - UC_UI.acceptService('S1pcEj_jZX');

where 'S1pcEj_jZX' is the template ID for Google Maps.

 

 

 

  • UC_UI.rejectService('ID'); → This function will reject the consent of service that is not part of the IAB TCF.

For Example - UC_UI.rejectService('S1pcEj_jZX');

where 'S1pcEj_jZX' is the template ID for Google Maps.

We are currently developing new functions, and we are going to update the information here as soon as possible.

 

 

 

Do you need further help?

https://usercentrics.atlassian.net/wiki/spaces/SKB/pages/234913848

Usercentrics - PUBLIC