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