
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
**Thư viện này không còn được hỗ trợ hoặc bảo trì. Vui lòng sử dụng gtag.js để tracking: https://developers.google.com/tag-platform/gtagjs**
Thư viện này không còn được hỗ trợ hoặc bảo trì. Vui lòng sử dụng gtag.js để tracking: https://developers.google.com/tag-platform/gtagjs
This library is no longer supported or maintained. Please use gtag.js for tracking: https://developers.google.com/tag-platform/gtagjs
zmp-ga4 is a library for integrating Google Analytics 4 on Mini App. It provides an adaptive way to collect data using the default gtag.js on http(s)://
protocols or Measurement Protocol on zbrowser://
protocol.
You can install zmp-ga4
using npm:
npm install zmp-ga4
To use zmp-ga4
, you first need to import the AdaptiveAnalytics class and create a new instance with your Google Analytics 4 property ID and measurement ID:
import { AdaptiveAnalytics } from "zmp-ga4";
export const ga4 = new AdaptiveAnalytics(
"G-**********", // measurement id
"**********************" //measurement protocol api secrets
);
A config object could also be passed to the third parameter to customize tracking behavior, for example:
export const ga4 = new AdaptiveAnalytics(
"G-**********", // measurement id
"**********************", //measurement protocol api secrets
{
useMeasurementProtocolWhen() {
return navigator.userAgent.toLowerCase().includes("ios");
},
gtagConfig: {
send_page_view: false,
},
}
);
You can then use the trackEvent method to send events to Google Analytics 4:
ga4.trackEvent("search", {
search_term: value,
});
The first parameter is the name of the event, and the second parameter is an object containing any additional information you want to send with the event.
zmp-ga4
is released under the MIT License. See LICENSE for details.
Contributions are welcome!
zmp-ga4
is maintained by the Zalo Mini App team. If you have any questions or issues, please file an issue on GitHub.
This library is not affiliated with or endorsed by Google. Google and Google Analytics are registered trademarks of Google LLC.
FAQs
**Thư viện này không còn được hỗ trợ hoặc bảo trì. Vui lòng sử dụng gtag.js để tracking: https://developers.google.com/tag-platform/gtagjs**
The npm package zmp-ga4 receives a total of 127 weekly downloads. As such, zmp-ga4 popularity was classified as not popular.
We found that zmp-ga4 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.