-
Notifications
You must be signed in to change notification settings - Fork 76
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
Load Cookie With Consent #123
Load Cookie With Consent #123
Conversation
…html. This will load the cookieSyncWithConsent.js script which will postMessage the parent window for GDPR consent data.
Thanks @mmoschovas . For the record, this is the code for #114 |
I'll take a cut at the docs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the example amp page on a few browsers, seems to be working fine. Just had one small issue, please check the line comment.
return value; | ||
} | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment and the code doesn't add up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
docs PR prebid/prebid.github.io#2456 |
Created alternate to load-cookie.html named load-cookie-with-consent.html. This will load the new cookieSyncWithConsent.js script which will postMessage the parent window for GDPR consent data. If data is returned before the timeout, the data is parsed to retrieve the gdprApplies and consentString values, which are then set in the data of the Prebid Server request. If the timeout expires prior to data returning, the defaultGdprScope setting will determine if the user sync should still run or not. The below fields can be passed in the load-cookie-with-consent.html URL string.
defaultGdprScope : accepted values 0 or 1, default 1
timeout : integer, default 10000
i.e. The below example would set the timeout to 500ms and allow sync if timeout is reached and GDPR data is not returned
...load-cookie-with-consent.html?max_sync_count=5&timeout=500&defaultGdprScope=0