@mparticle/web-double-click-kit 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -94,7 +94,10 @@ ConsentHandler.prototype.generateConsentStatePayloadFromMappings = function (
|
|
|
94
94
|
|
|
95
95
|
for (var i = 0; i <= mappings.length - 1; i++) {
|
|
96
96
|
var mappingEntry = mappings[i];
|
|
97
|
-
|
|
97
|
+
// Although consent purposes can be inputted into the UI in any casing
|
|
98
|
+
// the SDK will automatically lowercase them to prevent pseudo-duplicate
|
|
99
|
+
// consent purposes, so we call `toLowerCase` on the consentMapping purposes here
|
|
100
|
+
var mpMappedConsentName = mappingEntry.map.toLowerCase();
|
|
98
101
|
var googleMappedConsentName = mappingEntry.value;
|
|
99
102
|
|
|
100
103
|
if (
|
|
@@ -279,7 +282,7 @@ function EventHandler(common) {
|
|
|
279
282
|
this.common = common || {};
|
|
280
283
|
}
|
|
281
284
|
|
|
282
|
-
EventHandler.prototype.
|
|
285
|
+
EventHandler.prototype.maybeSendConsentUpdateToGoogle = function (event) {
|
|
283
286
|
// If consent payload is empty,
|
|
284
287
|
// we never sent an initial default consent state
|
|
285
288
|
// so we shouldn't send an update.
|
|
@@ -306,7 +309,7 @@ EventHandler.prototype.maybeSendConsentUpdateToGa4 = function (event) {
|
|
|
306
309
|
};
|
|
307
310
|
|
|
308
311
|
EventHandler.prototype.logEvent = function (event) {
|
|
309
|
-
this.
|
|
312
|
+
this.maybeSendConsentUpdateToGoogle(event);
|
|
310
313
|
|
|
311
314
|
var gtagProperties = {};
|
|
312
315
|
this.common.setCustomVariables(event, gtagProperties);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mparticle/web-double-click-kit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"repository": "https://github.com/mparticle-integrations/mparticle-javascript-integration-doubleclick",
|
|
5
5
|
"main": "dist/DoubleClick-Kit.common.js",
|
|
6
6
|
"browser": "dist/DoubleClick-Kit.common.js",
|