New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.6.3 to 1.7.0

2

package.json
{
"name": "zmp-ga4",
"version": "1.6.3",
"version": "1.7.0",
"author": {

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

@@ -93,8 +93,12 @@ "use strict";

var paths = location.pathname.split("/");
var pagePath = paths.length > 2 ? "/".concat(paths.slice(2).join("/")) : location.pathname;
setTimeout(function () {
_this.trackEvent("page_view", {
page_path: "/".concat(paths.length > 1 ? paths[paths.length - 1] : paths[0]),
page_path: pagePath,
page_params: location.search,
page_title: document.title
});
if (_this.options.onPageView) {
_this.options.onPageView(pagePath);
}
}, 0);

@@ -101,0 +105,0 @@ };

@@ -17,2 +17,3 @@ export class AdaptiveAnalytics {

gtagConfig?: Record<string, unknown>;
onPageView?: (pagePath: string) => void;
} = {

@@ -29,10 +30,13 @@ useMeasurementProtocolWhen: () =>

const paths = location.pathname.split("/");
const pagePath =
paths.length > 2 ? `/${paths.slice(2).join("/")}` : location.pathname;
setTimeout(() => {
this.trackEvent("page_view", {
page_path: `/${
paths.length > 1 ? paths[paths.length - 1] : paths[0]
}`,
page_path: pagePath,
page_params: location.search,
page_title: document.title,
});
if (this.options.onPageView) {
this.options.onPageView(pagePath);
}
}, 0);

@@ -39,0 +43,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