InteractiveAdvertisingBureau/iabtcf-es

How can i get the GDPR concent string

dheeraj2414 opened this issue · 4 comments

Hello Team,

I have tried the __tcfapi method to get the TCData From this method I got the tcString. But it is the same for all users, How I can get the GDPR string from tcString or is there another way to get the GDPR string?

tcString is actually GDPR string maybe missing some custom vendors and purposes that CMPs can add to additional consent stored it in separate cookies and provide it in result of getTCData call

Hi dheeraj,
To retrieve the CCPA consent string, you have to use the USPrivacy framework. You can use the 'getUSPData' call on __uspapi to get the uspString (aka the CCPA consent string). More info are here

I think this can be closed.