Comparing version 1.4.0 to 1.5.0
{ | ||
"name": "zmp-ga4", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Nguyễn Hồng Phát", |
@@ -71,3 +71,9 @@ "use strict"; | ||
client_id: _this.propertyId, | ||
events: _this.eventQueue | ||
events: _this.eventQueue.map(function (_a) { | ||
var name = _a.name, params = _a.params; | ||
return ({ | ||
name: name, | ||
params: __assign(__assign({}, params), { session_id: _this.userId }) | ||
}); | ||
}) | ||
}) | ||
@@ -178,3 +184,3 @@ }); | ||
name: action, | ||
params: __assign({ engagement_time_msec: performance.now() - this.startTime, session_id: this.userId, protocol: location.protocol }, params) | ||
params: __assign({ engagement_time_msec: performance.now() - this.startTime, protocol: location.protocol }, params) | ||
}); | ||
@@ -181,0 +187,0 @@ clearTimeout(this.timeout); |
@@ -124,3 +124,9 @@ export class AdaptiveAnalytics { | ||
client_id: this.propertyId, | ||
events: this.eventQueue, | ||
events: this.eventQueue.map(({ name, params }) => ({ | ||
name, | ||
params: { | ||
...params, | ||
session_id: this.userId, | ||
}, | ||
})), | ||
}), | ||
@@ -142,3 +148,2 @@ } | ||
engagement_time_msec: performance.now() - this.startTime, | ||
session_id: this.userId, | ||
protocol: location.protocol, | ||
@@ -145,0 +150,0 @@ ...params, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16939
355