@mparticle/web-google-analytics-4-client-kit 1.4.3 → 1.4.4

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.
@@ -680,6 +680,11 @@ CommerceHandler.prototype.logPromotionEvent = function (event) {
680
680
  event.PromotionAction.PromotionList.forEach(function (promotion) {
681
681
  ga4CommerceEventParameters = buildPromotion(promotion);
682
682
 
683
+ ga4CommerceEventParameters = self.common.mergeObjects(
684
+ ga4CommerceEventParameters,
685
+ self.common.limitEventAttributes(event.EventAttributes)
686
+ );
687
+
683
688
  self.sendCommerceEventToGA4(
684
689
  mapGA4EcommerceEventName(event),
685
690
  ga4CommerceEventParameters
@@ -706,6 +711,11 @@ CommerceHandler.prototype.logImpressionEvent = function (event, affiliation) {
706
711
  affiliation
707
712
  );
708
713
 
714
+ ga4CommerceEventParameters = self.common.mergeObjects(
715
+ ga4CommerceEventParameters,
716
+ self.common.limitEventAttributes(event.EventAttributes)
717
+ );
718
+
709
719
  self.sendCommerceEventToGA4(
710
720
  mapGA4EcommerceEventName(event),
711
721
  ga4CommerceEventParameters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mparticle/web-google-analytics-4-client-kit",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
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",