react-google-analytics-easy
v1.0.2
Published
A React package to integrate Google Analytics easily
Downloads
7
Maintainers
Readme
React Google Analytics
A React package to integrate Google Analytics easily. Please see example.js
Usage
useGoogleAnalytics(trackingId: string)
import useGoogleAnalytics from 'react-google-analytics';
const TRACKING_ID = 'YOUR_GA_TRACKING_ID';
useGoogleAnalytics(TRACKING_ID);
Installation
npm i react-google-analytics-easy