UniConsent CMP supports the Transparency and Consent Framework Canada (TCF Canada), which provides guidance for publishers, technology vendors, agencies, advertisers, and digital marketers to ensure that they are processing personal data legally in the Canadian market.
To enable TCF Canada API support within the UniConsent CMP dashboard, simply enable the "Enable Canada IAB TCF Policy" option. The TCF Canada API is a part of the Global Privacy Platform API, and its client-side prefix is tcfcav1.
The Global Privacy Platform (GPP) provides several APIs that can be used for the Canada Transparency and Consent Framework (TCF). These APIs include:
This API allows for the retrieval of the entire GPP data object, which includes the Canada TCF data, as well as data for other regulatory frameworks. The following command can be used to retrieve the GPP data object:
__gpp("addEventListener", (data, success) => {
if (success) {
console.log(data);
}
// remove the listener for one time data access
__gpp('removeEventListener', () => {}, data.listenerId);
});
This API checks if a specific section is present within the GPP data object. To check if the Canada TCF section is present, the following command can be used:
__gpp("hasSection", function (data, success) {
console.log(data, success);
}, 'tcfcav1');
This API retrieves a specific section within the GPP data object. To retrieve the Canada TCF section, the following command can be used:
__gpp("getSection", function (data, success) {
console.log(data, success);
}, 'tcfcav1');
This API retrieves a specific field within a section of the GPP data object. To retrieve a list of Vendor IDs with consent given for the Canada TCF, the following commands can be used:
__gpp("getField", function (data, success) {
console.log(data, success);
}, 'tcfcav1.PurposesExpressConsent');
__gpp("getField", function (data, success) {
console.log(data, success);
}, 'tcfcav1.VendorExpressConsent');
__gpp("getField", function (data, success) {
console.log(data, success);
}, 'tcfcav1.VendorImpliedConsent');
These APIs allow for the retrieval of important data related to the Canada TCF, which can be used by publishers, technology vendors, agencies, advertisers and digital marketers to ensure they are working under appropriate legal purposes for processing personal data in the Canadian market.
Find GPP API 1.1 at /docs/tutorials/iab-gpp
Find IAB GPP Consent String Decoder at: GPP Decoder.