analytics-plugin-web3analytics

0.2.2 • Public • Published

Web3 Analytics Plugin

This is a plugin for Analytics, a lightweight open-source frontend analytics abstraction layer. The plugin enables sending data to Web3 Analytics, a decentralized analytics platform for web3 apps.

Installation

npm install analytics
npm install analytics-plugin-web3analytics

Usage

import Analytics from 'analytics';
import web3Analytics from 'analytics-plugin-web3analytics';

/* Initialize analytics & load plugins */
const analytics = Analytics({
  app: 'awesome-app',
  plugins: [
    web3Analytics({
      appId: YOUR_WEB3ANALYTICS_APP_ID,
      jsonRpcUrl: 'https://eth-goerli.g.alchemy.com/v2/your_key_here'
    })
  ]
})

License

Apache-2.0 OR MIT

Readme

Keywords

Package Sidebar

Install

npm i analytics-plugin-web3analytics

Weekly Downloads

126

Version

0.2.2

License

(Apache-2.0 OR MIT)

Unpacked Size

4.96 MB

Total Files

9

Last publish

Collaborators

  • andyjagoe