Socket
Socket
Sign inDemoInstall

cordova-plugin-firebase-analytics-1

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-firebase-analytics-1

Cordova plugin for Firebase Analytics


Version published
Weekly downloads
21
decreased by-38.24%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

cordova-plugin-firebase-analytics
NPM version NPM downloads

Cordova plugin for Firebase Analytics

Installation

cordova plugin add cordova-plugin-firebase-analytics --save

If you need to set a specific dependency version on Android then use variable FIREBASE_VERSION.

Plugin depends on cordova-support-google-services for setting up google services properly. Please read the README carefully in order to avoid common issues with a project configuration.

NOTE: on iOS in order to collect demographic, age, gender data etc. you should additionally include AdSupport.framework into your project.

Supported Platforms

  • iOS
  • Android

Methods

Every method returns a promise that fulfills when a call was successful.

logEvent(name, params)

Logs an app event.

cordova.plugins.firebase.analytics.logEvent("my_event", {param1: "value1"});

Be aware of automatically collected events.

setUserId(id)

Sets the user ID property.

cordova.plugins.firebase.analytics.setUserId("12345");

This feature must be used in accordance with Google's Privacy Policy.

setUserProperty(name, value)

Sets a user property to a given value.

cordova.plugins.firebase.analytics.setUserProperty("name1", "value1");

Be aware of automatically collected user properties.

setCurrentScreen(name)

Sets the current screen name, which specifies the current visual context in your app. This helps identify the areas in your app where users spend their time and how they interact with your app.

cordova.plugins.firebase.analytics.setCurrentScreen("User profile");

setEnabled(enabled)

Sets whether analytics collection is enabled for this app on this device.

cordova.plugins.firebase.analytics.setEnabled(false);

Keywords

FAQs

Last updated on 16 Jun 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc