Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deaconn-net/react-google-analytics

A simple React component that allows you to insert your Google Analytics tag easily!
https://github.com/deaconn-net/react-google-analytics

component google google-analytics javascript npm package react typescript

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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.

```ts
import { GoogleAnalytics } from "deaconn-google-analytics"

...

return (



);

```

## Installation
You may install the component using the NPM package manager.

```bash
npm install deaconn-google-analytics
```

## Credits
* [Christian Deacon](https://github.com/gamemann)