@bna/analytics

v0.0.8-alpha.14
Simple wrapper of analytics Layer

Analytics

Install via yarn

yarn add analytics -S

How to use

/* example file src/analytics.js */
import Analytics from '@bna/analytics';
import umamiPlugin from '@bna/analytics-plugin-umami';

const analytics = Analytics({
  app: 'your-app-name',
  plugins: [
    // ... your analytics integrations
    umamiPlugin({
      id: '',
      reportUri: '',
    });
  ],
});

/* export the instance for usage in your app */
export default analytics;
npm i @bna/[email protected]

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 4/14/2021

Downloads

Maintainers