...
This function returns the current status of the GDPR CMP. It is part of the IAB Europe Transparency and Consent Framework (TCF) Specifications.
To query the state and process consent it is recommended to use addEventListener instead of ping
.
Syntax
function __tcfapi()
...
The function can be called at any time, but the response will change depending on when it is called.
Examples
...