@mparticle/web-google-analytics-4-client-kit 1.4.5 → 1.5.1
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.
|
@@ -697,6 +697,11 @@ CommerceHandler.prototype.logCheckoutOptionEvent = function (
|
|
|
697
697
|
return false;
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
+
ga4CommerceEventParameters = this.common.mergeObjects(
|
|
701
|
+
ga4CommerceEventParameters,
|
|
702
|
+
this.common.limitEventAttributes(event.EventAttributes)
|
|
703
|
+
);
|
|
704
|
+
|
|
700
705
|
return this.sendCommerceEventToGA4(
|
|
701
706
|
mapGA4EcommerceEventName(event),
|
|
702
707
|
ga4CommerceEventParameters
|
|
@@ -930,6 +935,9 @@ function parseProduct(product, affiliation) {
|
|
|
930
935
|
case 'Variant':
|
|
931
936
|
productWithAllAttributes.item_variant = product.Variant;
|
|
932
937
|
break;
|
|
938
|
+
case 'Position':
|
|
939
|
+
productWithAllAttributes.index = product.Position;
|
|
940
|
+
break;
|
|
933
941
|
case 'Attributes':
|
|
934
942
|
break;
|
|
935
943
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mparticle/web-google-analytics-4-client-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
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",
|
|
@@ -17,14 +17,18 @@
|
|
|
17
17
|
"testEndToEnd": "ENVIRONMENT=testEndToEnd rollup --config rollup.config.js && open http://localhost:8082/node_modules/@mparticle/web-kit-wrapper/end-to-end-testapp/index.html && node node_modules/@mparticle/web-kit-wrapper/end-to-end-testapp/server"
|
|
18
18
|
},
|
|
19
19
|
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
20
|
+
"access": "public",
|
|
21
|
+
"provenance": true,
|
|
22
|
+
"registry": "https://registry.npmjs.org"
|
|
21
23
|
},
|
|
22
24
|
"repository": "https://github.com/mparticle-integrations/mparticle-javascript-integration-google-analytics-4/tree/master/packages/GA4Client",
|
|
23
25
|
"devDependencies": {
|
|
24
26
|
"@mparticle/web-kit-wrapper": "^1.0.5",
|
|
25
|
-
"@semantic-release/changelog": "^
|
|
26
|
-
"@semantic-release/exec": "^
|
|
27
|
-
"@semantic-release/git": "^
|
|
27
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
28
|
+
"@semantic-release/exec": "^6.0.3",
|
|
29
|
+
"@semantic-release/git": "^10.0.1",
|
|
30
|
+
"@semantic-release/npm": "^13.1.2",
|
|
31
|
+
"semantic-release": "^24.2.0",
|
|
28
32
|
"chai": "^4.2.0",
|
|
29
33
|
"eslint": "^7.25.0",
|
|
30
34
|
"eslint-config-prettier": "8.3.0",
|
|
@@ -45,7 +49,7 @@
|
|
|
45
49
|
"watchify": "^3.11.0"
|
|
46
50
|
},
|
|
47
51
|
"dependencies": {
|
|
48
|
-
"@mparticle/web-sdk": "^2.
|
|
52
|
+
"@mparticle/web-sdk": "^2.58.0"
|
|
49
53
|
},
|
|
50
54
|
"license": "Apache-2.0"
|
|
51
55
|
}
|