Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
lazy-analytics
Advanced tools
Package that helps to add Google Analytics, Adobe Analytics, Facebook Pixel, Twitter Pixel and Linkedin Pixel to your website.
This package is a helper to have some platform analytics in your website, the idea is to be able to add them as easy as possible. Is also important to us to be able to initialize the analytics in the moment that we consider and to be able to trigger global events on change route.
Lazy analytics is compatible with:
npm install --save lazy-analytics
import { initAnalytics } from 'lazy-analytics';
// After app configuration
const options = {
route: null,
google: 'google analytics code',
facebook: 'facebook pixel code',
linkedin: 'linkedin pixel code',
twitter: 'twitter pixel code',
adobe: 'adobe analytics code'
};
initAnalytics(options);
Note: You need to add at least one of them, but is not necessary to add all.
If you have a router like vue-router
you can add a global trigger for each route change.
import { onRouteChangeAnalytics } from 'lazy-analytics';
// After route change
onRouteChangeAnalytics(route);
FAQs
Package that helps to add Google Analytics, Adobe Analytics, Facebook Pixel, Twitter Pixel and Linkedin Pixel to your website.
The npm package lazy-analytics receives a total of 3 weekly downloads. As such, lazy-analytics popularity was classified as not popular.
We found that lazy-analytics demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.