React Analytics Provider

Super convenient analytics provider for React

  • ๐Ÿ’™ Typescript support
  • ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ GA4 support
  • ๐Ÿƒ Currently maintaining

1. Getting Started

npm i --save @every-analytics/react-analytics-provider
# or
yarn add @every-analytics/react-analytics-provider

2. Usage

You can check examples here

import {AnalyticsProvider} from '@every-analytics/react-analytics-provider';

<AnalyticsProvider
  onInitialize={() => console.log('initialized')}
  onPageView={(params) => console.log('pageview', params)}
  onEvent={(name, params) => console.log('event', name, params)}
  onClick={(name, params) => console.log('click', name, params)}
>
  <App />
</AnalyticsProvider>

GitHub

https://github.com/EveryAnalytics/react-analytics-provider