iabtcf-es icon indicating copy to clipboard operation
iabtcf-es copied to clipboard

How can i get the GDPR concent string

Open ghost opened this issue 1 year ago • 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?

ghost avatar Sep 01 '23 08:09 ghost

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

sevriugin avatar Sep 01 '23 09:09 sevriugin

Hello Team, Thanks for your help, can you also let me know how can i get the CCPA string from tcData?

Thanks

On Fri, Sep 1, 2023 at 3:28 PM Sergei Sevriugin @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/InteractiveAdvertisingBureau/iabtcf-es/issues/414#issuecomment-1702492421, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYTEBU7Z577WMEAMZBBREZDXYGWSTANCNFSM6AAAAAA4HH6VOU . You are receiving this because you authored the thread.Message ID: @.***>

ghost avatar Sep 04 '23 04:09 ghost

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

github-thomas-sormonte avatar Sep 04 '23 11:09 github-thomas-sormonte

I think this can be closed.

HeinzBaumann avatar Nov 02 '23 00:11 HeinzBaumann