You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
The format of the consent cookie is pretty obfuscated, which makes testing difficult. We need a thin tool to turn the cookie into some human readable format so that our partners can test their CMP implementation by comparing inputs and outputs.
Acceptance Criteria:
As a partner (advertiser/publisher), I should have access to a CMP integration testing tool
As a partner, I should be able to feed a consent cookie into the testing tool, and get returned the "contents" of that cookie in a human readable format. (specifically, what type(s) of consent have been given, and to which data partners)
Activity
SupahNickie commentedon Apr 30, 2018
The decoding logic can be found in https://github.com/digi-trust/cmp/blob/master/src/lib/cookie/cookie.js and https://github.com/digi-trust/cmp/blob/master/src/lib/cookie/cookieutils.js . The useful call you can make to the CMP to read the cookie's data after it has loaded is
window.__cmp('getVendorConsents'), which returns a Promise.Please feel free to ask any further questions!