Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/deaconn-net/react-google-analytics
- Owner: deaconn-net
- Created: 2023-08-04T04:54:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-04T06:08:03.000Z (over 1 year ago)
- Last Synced: 2024-11-13T08:46:38.941Z (about 2 months ago)
- Topics: component, google, google-analytics, javascript, npm, package, react, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/deaconn-google-analytics
- Size: 68.4 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)