Comparing version 1.7.0 to 1.7.1
{ | ||
"name": "zmp-ga4", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Nguyễn Hồng Phát", |
@@ -93,3 +93,3 @@ "use strict"; | ||
var paths = location.pathname.split("/"); | ||
var pagePath = paths.length > 2 ? "/".concat(paths.slice(2).join("/")) : location.pathname; | ||
var pagePath = paths.length > 3 ? "/".concat(paths.slice(3).join("/")) : location.pathname; | ||
setTimeout(function () { | ||
@@ -96,0 +96,0 @@ _this.trackEvent("page_view", { |
@@ -30,3 +30,3 @@ export class AdaptiveAnalytics { | ||
const pagePath = | ||
paths.length > 2 ? `/${paths.slice(2).join("/")}` : location.pathname; | ||
paths.length > 3 ? `/${paths.slice(3).join("/")}` : location.pathname; | ||
setTimeout(() => { | ||
@@ -33,0 +33,0 @@ this.trackEvent("page_view", { |