Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@firebase/analytics
Advanced tools
The @firebase/analytics package is part of the Firebase platform and is used to integrate Google Analytics with web applications to track and analyze user interactions and behavior in a privacy-compliant manner. It provides insights into app usage patterns and effectiveness of different features, helping developers to make data-driven decisions to improve their applications.
Event Tracking
This feature allows developers to track custom events within their application. The code sample demonstrates how to log a 'purchase' event with additional parameters describing the item purchased.
firebase.analytics().logEvent('purchase', {item: 'blue jeans', size: 'L'});
Screen Tracking
Enables tracking of user visits to different screens within the application, useful for understanding user flows and engagement. The code sample sets the current screen to 'Homepage' with an optional screen class override.
firebase.analytics().setCurrentScreen('Homepage', 'homepage_screen');
User Properties
This allows the setting of user properties which can be used to segment users in analytics reports. The code sample demonstrates setting a user property for the user's favorite food.
firebase.analytics().setUserProperties({favorite_food: 'pizza'});
React-ga is a JavaScript package that enables Google Analytics integration for React applications. It is similar to @firebase/analytics but specifically tailored for React environments, offering easy setup and React-specific hooks.
A Node.js module for Google's Universal Analytics tracking. Unlike @firebase/analytics, which is tightly integrated with Firebase services, universal-analytics is more flexible and can be used in any Node.js application without Firebase.
Formerly known as Piwik, Matomo is an open-source analytics platform that rivals Google Analytics. It offers similar functionalities but with a focus on privacy and data ownership, making it a good alternative for users with specific data handling requirements.
This is the Firebase Analytics component of the Firebase JS SDK.
This package is not intended for direct usage, and should only be used via the officially supported firebase package.
FAQs
A analytics package for new firebase packages
We found that @firebase/analytics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.