Socket
Socket
Sign inDemoInstall

@firebase/analytics

Package Overview
Dependencies
Maintainers
0
Versions
2443
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/analytics

A analytics package for new firebase packages


Version published
Weekly downloads
1.5M
decreased by-10.62%
Maintainers
0
Weekly downloads
 
Created

What is @firebase/analytics?

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.

What are @firebase/analytics's main functionalities?

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'});

Other packages similar to @firebase/analytics

FAQs

Package last updated on 02 Jul 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc