fides icon indicating copy to clipboard operation
fides copied to clipboard

Update emp.js script to include data sharing

Open Kelsey-Ethyca opened this issue 2 years ago • 1 comments

USER STORY

As a website visitor, when I have an Ethyca cookie on my browser which reflects that I have opted out of data sharing, then the Ethyca script exposes that choice on the DOM for GTM, Segment, Facebook etc to consume.

DETAILS

In Pro's Control Panel today an admin can create Data Use Cases. These use cases show under Consent Management in the Privacy Center for a user to opt in or out. We will add Data Sharing as a new type when creating data use cases to comply with CPRA/VCPA in https://github.com/ethyca/fides/issues/1397 and https://github.com/ethyca/fides/issues/1398.

With https://github.com/ethyca/fides/issues/1399 we will add Data Sharing to the eth_cmp cookie.

In Pro, we have an existing script that places the consent data on the DOM for other scripts. We need to add Data Sharing to this script.

Pro Docs - Implement Consent in Browser

EPIC DOC

AC

  • Given that I have the Ethyca cookie on my browser from a site and the site has the Ethyca emp.js script in the <head>, when the page loads, then the Ethyca emp.js script places the contents of the cookie on the window for other scripts to consume.

Kelsey-Ethyca avatar Oct 12 '22 04:10 Kelsey-Ethyca

Minor comment here - the emp.js script sets this object on the window regardless of the presence of the cookie. When the cookie is set, it updates the values on the ethyca object reflect the cookie values.

mfbrown avatar Oct 12 '22 16:10 mfbrown