@mparticle/web-google-analytics-4-client-kit 1.4.1 → 1.4.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,11 @@ ConsentHandler.prototype.generateConsentStatePayloadFromMappings = function (
94
94
 
95
95
  for (var i = 0; i <= mappings.length - 1; i++) {
96
96
  var mappingEntry = mappings[i];
97
- var mpMappedConsentName = mappingEntry.map;
97
+
98
+ // Although consent purposes can be inputted into the UI in any casing
99
+ // the SDK will automatically lowercase them to prevent pseudo-duplicate
100
+ // consent purposes, so we call `toLowerCase` on the consentMapping purposes here
101
+ var mpMappedConsentName = mappingEntry.map.toLowerCase();
98
102
  var googleMappedConsentName = mappingEntry.value;
99
103
 
100
104
  if (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mparticle/web-google-analytics-4-client-kit",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "author": "mParticle Developers <developers@mparticle.com> (https://www.mparticle.com)",
5
5
  "description": "mParticle integration sdk for Google Analytics",
6
6
  "main": "dist/GoogleAnalytics4EventForwarderClientSide-Kit.common.js",