How to find the TC string of a website.
A TCF consent tool stores the TC string in the browser and hands it to ad scripts. Open the website, make a choice in its consent banner, then use 1 of these ways.
The cookie. Open the developer tools of your browser, go to Application (Chrome, Edge) or Storage (Firefox), then Cookies, and copy the value of euconsent-v2. Some CMPs keep the string under another name or in local storage.
The console. In the Console tab, run
__tcfapi('getTCData', 2, function (data) { console.log(data.tcString) })and copy the string it prints.Ad requests. In the Network tab, filter by gdpr_consent and copy the value of that parameter from an ad request.
Google Additional Consent. Run
__tcfapi('getTCData', 2, function (data) { console.log(data.addtlConsent) }), or copy the addtl_consent parameter of a Google ad request.Mobile apps. In an Android or iOS app, the CMP stores the string as IABTCF_TCString in SharedPreferences (Android) or NSUserDefaults (iOS).