Adds support for consent string and other TCF metadata generated by a consent management platform for GDPR.
This will add a macro for any property of the tcData object. Most notable are {tcf.gdprApplies} and {tcf.tcString} which return whether GDPR applies to the session (broadly, is the browser in Europe) and the current consent string. Additionally {tcf.gdprAppliesInt} returns{tcf.gdprApplies} as an int, as this seems more commonly expected by ad servers.
Adds support for consent string and other TCF metadata generated by a consent management platform for GDPR.
This will add a macro for any property of the tcData object. Most notable are
{tcf.gdprApplies}
and{tcf.tcString}
which return whether GDPR applies to the session (broadly, is the browser in Europe) and the current consent string. Additionally{tcf.gdprAppliesInt}
returns{tcf.gdprApplies}
as an int, as this seems more commonly expected by ad servers.Updated docs, added tests. A demo page with a CMP is at https://consent.misterben.me/vjs.html