API Reference

getTCData (Deprecated TCF 2.2)

🚧

Deprecated in IAB GDPR TCF v2.2

Historically, the tcData object which contains encoded and unencoded values of the TC String, vendors, IAB purposes, etc... pertaining to an end-user's current browser session was accessed via the getTCData command. This command has since been deprecated in IAB GDPR TCF v2.2.

Under IAB GDPR TCF v2.2, add an addEventListener and utilize its callback function to access the tcData object. Click here for more information on the addEventListener command.