-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
PubCommonId - Add support for localStorage #3661
Conversation
This pull request introduces 1 alert when merging d764eefd8f637f28eb0821d99eb46087012109ab into 6cd91f9 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
d764eef
to
5ce7a59
Compare
I am going to rework this a bit to avoid copying id from local storage to cookie all the time. |
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.
I just saw that you plan to rework, I'll review again when you complete your changes.
@idettman Thanks. |
@pycnvr let me know when you're ready for review, thanks! |
@idettman Sorry about the delay. It should be ready soon. Thanks. |
2d5d243
to
95fb0de
Compare
@idettman Ready for review once again. Thanks. |
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
@bretg Would it be possible to include this in the next release? |
* Add support for localStorage * Pubcid uses local storage first
Type of change
Description of change
Enable PubCommonId module to store id in localStorage. This is for publishers that have not yet switch to the new user id module. As a transition aid, the pubcid is written both as a cookie and also to the localStorage. Cookie values, if present, will be copied into localStorage. Otherwise a new id will be generated and written to both locations.
The default expiration time has also been reduced to 1 year.
Be sure to test the integration with your adserver using the Hello World sample page.
contact email of the adapter’s maintainer
pyang@conversantmedia.com
official adapter submission
For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:
PubCommonId - Add support for local storage prebid.github.io#1217
Other information