Skip to content

Repository files navigation

React Google Analytics

A small NPM package to handle inserting scripts required for Google Analytics to send analytics via a React component.

Usage

Props

  • tag - Your analytics tag ID.
import { GoogleAnalytics } from "deaconn-google-analytics"

...

return (
    <head>
        <GoogleAnalytics tag="mytagID" />
    </head>
);

Installation

You may install the component using the NPM package manager.

npm install deaconn-google-analytics

Credits

About

A simple React component that allows you to insert your Google Analytics tag easily!

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages