Silent global IAB TCF API outside EEA/UK
U
Uros Mevc
We need CookieScript to initialise window.__tcfapi globally while keeping the consent banner limited to EEA/UK.
For example, for visitors from Serbia:
- Do not show the GDPR consent banner.
- Still initialise window.__tcfapi.
- Immediately return gdprApplies: false.
For visitors from EEA/UK:
- Show the consent banner.
- Initialise window.__tcfapi.
- Return gdprApplies: true together with the user’s consent choices.
Currently, window.__tcfapi is only available where the TCF banner is active. Advertising integrations waiting for a TCF response may therefore remain blocked or wait for a timeout for Serbian visitors.
We would like a native “silent TCF outside GDPR regions” option so publishers do not need to implement a custom TCF stub.