Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zmp-ga4

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zmp-ga4 - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

2

package.json
{
"name": "zmp-ga4",
"version": "1.5.0",
"version": "1.6.0",
"author": {

@@ -5,0 +5,0 @@ "name": "Nguyễn Hồng Phát",

@@ -79,3 +79,3 @@ "use strict";

})
});
})["catch"]();
_this.eventQueue = [];

@@ -92,7 +92,10 @@ }

var handleLocationChange = function () {
_this.trackEvent("page_view", {
page_path: location.pathname,
page_params: location.search,
page_title: document.title
});
var paths = location.pathname.split("/");
setTimeout(function () {
_this.trackEvent("page_view", {
page_path: paths.length > 1 ? paths[paths.length - 1] : paths[0],
page_params: location.search,
page_title: document.title
});
}, 0);
};

@@ -99,0 +102,0 @@ handleLocationChange();

@@ -26,7 +26,10 @@ export class AdaptiveAnalytics {

const handleLocationChange = () => {
this.trackEvent("page_view", {
page_path: location.pathname,
page_params: location.search,
page_title: document.title,
});
const paths = location.pathname.split("/");
setTimeout(() => {
this.trackEvent("page_view", {
page_path: paths.length > 1 ? paths[paths.length - 1] : paths[0],
page_params: location.search,
page_title: document.title,
});
}, 0);
};

@@ -134,3 +137,3 @@ handleLocationChange();

}
);
).catch();
this.eventQueue = [];

@@ -137,0 +140,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc