Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i get the GDPR concent string #414

Open
ghost opened this issue Sep 1, 2023 · 4 comments
Open

How can i get the GDPR concent string #414

ghost opened this issue Sep 1, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Sep 1, 2023

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 ghost added the enhancement New feature or request label Sep 1, 2023
@sevriugin
Copy link
Collaborator

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

@ghost
Copy link
Author

ghost commented Sep 4, 2023 via email

@github-thomas-sormonte
Copy link

github-thomas-sormonte commented Sep 4, 2023

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

@HeinzBaumann
Copy link
Collaborator

I think this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants