Socket
Book a DemoInstallSign in
Socket

@binance-chain/analytics-plugin-ga

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@binance-chain/analytics-plugin-ga

Ga analytics plugin for 'analytics' module

0.0.16
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
4
Weekly downloads
 
Created
Source

Google Analytics

How to use

Below is an example of how to use the browser plugin.

Using npm:

import Analytics from '@binance-chain/analytics';
import Ga from '@binance-chain/analytics-plugin-ga';

const analytics = Analytics({
  app: 'awesome-app',
  plugins: [
    Ga({
      id: 'UA-167308739-1',
    }),
  ],
});

/* Track a page view */
analytics.page();

/* Track a custom event */
analytics.track('playedVideo', {
  category: 'Videos',
  label: 'Fall Campaign',
  value: 42,
});

/* export the instance for usage in your app */
export default analytics;

FAQs

Package last updated on 13 May 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.