@firebase/analytics

  • Version 0.6.11
  • Published
  • 394 kB
  • 6 dependencies
  • Apache-2.0 license

Install

npm i @firebase/analytics
yarn add @firebase/analytics
pnpm add @firebase/analytics

Overview

A analytics package for new firebase packages

Index

Functions

function factory

factory: (app: any, installations: any) => any;

    function getGlobalVars

    getGlobalVars: () => {
    initializationPromisesMap: { [appId: string]: Promise<string> };
    dynamicConfigPromisesList: Array<Promise<DynamicConfig | MinimalDynamicConfig>>;
    };
    • For testing

    function registerAnalytics

    registerAnalytics: (instance: any) => void;

      function resetGlobalVars

      resetGlobalVars: (
      newGlobalInitDone?: boolean,
      newInitializationPromisesMap?: {},
      newDynamicPromises?: never[]
      ) => void;
      • For testing

      function settings

      settings: (options: any) => void;
      • This must be run before calling firebase.analytics() or it won't have any effect.

        Parameter options

        Custom gtag and dataLayer names.

      Namespaces

      namespace global

      namespace global {}

        interface Window

        interface Window {}

          index signature

          [key: string]: unknown;

            Package Files (2)

            Dependencies (6)

            Dev Dependencies (7)

            Peer Dependencies (2)

            Badge

            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@firebase/analytics.

            • Markdown
              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@firebase/analytics)
            • HTML
              <a href="https://www.jsdocs.io/package/@firebase/analytics"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>