Comparing version 1.9.0 to 1.9.1
{ | ||
"name": "zmp-ga4", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Nguyễn Hồng Phát", |
@@ -59,2 +59,3 @@ "use strict"; | ||
var _this = this; | ||
var _a; | ||
this.propertyId = propertyId; | ||
@@ -86,3 +87,4 @@ this.apiSecretKey = apiSecretKey; | ||
window.addEventListener("beforeunload", this.collect); | ||
this.referer = new URLSearchParams(location.search).get("utm_source"); | ||
this.referer = | ||
(_a = new URLSearchParams(location.search).get("utm_source")) !== null && _a !== void 0 ? _a : ""; | ||
this.screenResolution = "".concat(screen.width, "x").concat(screen.height); | ||
@@ -89,0 +91,0 @@ this.viewportSize = "".concat(window.innerWidth, "x").concat(window.innerHeight); |
@@ -30,3 +30,4 @@ export class AdaptiveAnalytics { | ||
window.addEventListener("beforeunload", this.collect); | ||
this.referer = new URLSearchParams(location.search).get("utm_source"); | ||
this.referer = | ||
new URLSearchParams(location.search).get("utm_source") ?? ""; | ||
this.screenResolution = `${screen.width}x${screen.height}`; | ||
@@ -33,0 +34,0 @@ this.viewportSize = `${window.innerWidth}x${window.innerHeight}`; |
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
18426
385