deaconn-net / react-google-analytics

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

Home Page:https://www.npmjs.com/package/deaconn-google-analytics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

https://www.npmjs.com/package/deaconn-google-analytics


Languages

Language:TypeScript 100.0%