npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

emi-indo-cordova-plugin-fanalytics

v0.0.9

Published

Cordova Plugin Firebase Analytics support consent and admob

Downloads

306

Readme

emi-indo-cordova-plugin-fanalytics

Cordova Plugin Firebase Analytics support consent and AdMob

Support Capacitor

full example

[!NOTE]

  • To maintain this plugin in the long run,
  • for (regular maintenance),
  • just give me a cup of coffee.

💰Sponsor this project

PayPal
ko-fi

This plugin comes with a hook

  • so this is not required <resource-file src=“www/google-services.json” target=“app/google-services.json” />
  • just add google-services.json or GoogleService-Info.plist to the www folder and it will run automatically.

Minimum Cordova Engines

  • cordova version = 10.0.0
  • cordova-android version = 11.0.0
  • cordova-ios version = 6.0.0

[!NOTE]

  • Android only, IOS I have not updated yet

Features

  • setEnabled
  • setSessionTimeoutDuration
  • logEvent
  • logEventSelectContent
  • setUserId
  • setUserProperty
  • resetAnalyticsData
  • setCurrentScreen
  • setDefaultEventParameters
  • setConsent
  • setAdMobRevenuePaid

Installation Capacitor

  • project confirmation ( Android )

  • add file google-services.json inside the www folder

  • project confirmation ( IOS )

  • add file GoogleService-Info.plist inside the www folder

Installation plugin

npm i emi-indo-cordova-plugin-fanalytics

add node to package.json


 "scripts": {
	.....
	.....
	"update-analytics": "node node_modules/emi-indo-cordova-plugin-fanalytics/hooks/capacitor-config-hooks.js",
	.....
	.....
  },

Run the Hook script

npm run update-analytics

Plugin Synchronization: Run the following command to synchronize the Cordova plugin to the Capacitor project:

npx cap sync

Optional (capacitor-config-variable.js)

  • Value true by default
  • If you want to change it to false
  • add in capacitor.config.json
{
  "appId": "io.cordova.hellocordova",
  "appName": "HelloCordova",
  "webDir": "www",
  "bundledWebRuntime": false,
  "plugins": {
    "Analytics": {
      "ANALYTICS_COLLECTION_ENABLED": "false",       // Customize with needs true | false
      "AUTOMATIC_SCREEN_REPORTING_ENABLED": "false", // Customize with needs true | false
      "DEFAULT_ALLOW_ANALYTICS_STORAGE": "false",    // Customize with needs true | false
      "DEFAULT_ALLOW_AD_STORAGE": "false"            // Customize with needs true | false
    }
  }
}

add node to package.json

  • capacitor-config-variable.js

 "scripts": {
	.....
	.....
	"update-analytics": "node node_modules/emi-indo-cordova-plugin-fanalytics/hooks/capacitor-config-hooks.js",
        "update-analytics-variable": "node node_modules/emi-indo-cordova-plugin-fanalytics/hooks/capacitor-config-variable.js",
	.....
	.....
  },

Run the Hook script

npm run update-analytics-variable

Installation Cordova

cordova plugin add emi-indo-cordova-plugin-fanalytics

Or

cordova plugin add https://github.com/EMI-INDO/emi-indo-cordova-plugin-fanalytics

Remove

cordova plugin rm emi-indo-cordova-plugin-fanalytics

project confirmation (ANDROID)

  • add file google-services.json inside the www folder

project confirmation ( IOS )

  • add file GoogleService-Info.plist inside the www folder
  • After the plugin has been added run the`
  • cordova prepare

Then from the command line run: cd/path/platform/ios

  • pod install --repo-update
  • wait for the pod to finish installing
  • open file YourProject.xcworkspace ( Or open YourProject.xcworkspace file from Xcode )

This plugin was outdated at first, because it was not maintained, now I am maintaining it again.

Support Platform

  • Android
  • IOS