react-google-analytics-easy

1.0.2 • Public • Published

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

/react-google-analytics-easy/

    Package Sidebar

    Install

    npm i react-google-analytics-easy

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    2.38 kB

    Total Files

    5

    Last publish

    Collaborators

    • gegatto92