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 thegetTCData
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 thetcData
object. Click here for more information on theaddEventListener
command.