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?
Usercentrics - PUBLIC