This library is currently in alpha release.
Encode consent information with the IAB EU's GDPR Transparency and Consent Framework v2.0.
The IAB specification for the consent string format is available on the IAB Github.
This library supports the version v2.0 of the specification. It can decode consent strings with version bit 2.
Version 2 of the TCF Specifications were released 21 August 2019 with industry adoption commencing first half of 2020.
Framework Technical specifications available at: https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/tree/master/TCFv2
IAB Europe Transparency & Consent Framework (TCF) has a simple objective to help all parties in the digital advertising chain ensure that they comply with the EU’s General Data Protection Regulation and ePrivacy Directive when processing personal data or accessing and/or storing information on a user’s device, such as cookies, advertising identifiers, device identifiers and other tracking technologies. IAB Tech Lab stewards the development of these technical specifications.
Resources including policy FAQ, Global Vendor List, and CMP List can be found at iabeurope.eu/tcf.