The General Data Protection Regulation (GDPR) is a new European Union (EU) law that has global impact as it introduces new rules for the governance of personal data, such as a requirement to capture User Consent. This section explains the steps to implement collection of User Consent for Audience Research purposes in tagging with the comScore library.
comScore collects data through the use of name/value pairs, typically called ‘labels’. Data collection is autonomous and controlled by the comScore library, influenced by library API method calls iniOS applications, iOS extensions, tvOS applications and watchOS applications.
To collect User Consent for Audience Research purposes a publisher must add label cs_ucfr cs_ucfrto the comScore library configuration code statements as a Persistent Label. This will cause the label and its value to be persisted through the application run and included by the comScore library in all collected data transmissions. In this process the publisher should not change any other configuration settings.
The required values for the cs_ucfruser consent label are:
Using the User Consent Label
If the User Consent value is known at the time the comScore library is configured and started, then the cs_ucfrcan be populated as a Persistent Label as part of the comScore library configuration. For most publishers the configuration settings of the library will look like this:
For Projects using Objective-C
For Projects using Swift
Depending on individual publisher data collection needs other configuration settings might be included. Regardless of exactly what configuration settings appear, for the purpose of collecting User Consent the persistent Labels configuration setting needs to be added (or modified) on the SCORPublisherConfiguration. This configuration setting accepts persistent labels as a Dictionary of which the key/value pairs represent label name/value pairs.
For example, assuming the user has given consent, the aforementioned configuration code statements would be changed as follows:
For Projects using Objective-C
For Projects using Swift
To update the User Consent value after the comScore library is started — or to set the value in case it was previously unknown — labelcs_ucfrcan be populated with the appropriate value as shown below with a subsequent notification of aHidden Event so comScore can collect the updated User Consent value.
For Projects using Objective-C
For Projects using Swift
Confirm User Consent is Collected
After changing the implementation as instructed in this section the collected data should contain label cs_ucfrwith its assigned value any time the comScore library transmits collected data. The collected data is transmitted as HTTP requests of which the URL query string parameters should contain label cs_ucfrwith its assigned value. The HTTP requests can be inspected with an HTTP proxy such as Fiddler or Charles Proxy (more instructions can be found in Test Your Implementationonpage).
0 Comments