1.0.0 • Published 10 months ago
deaconn-google-analytics v1.0.0
React Google Analytics
A small NPM package to handle inserting the scripts needed for Google Analytics to operate 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 component using the NPM package manager.
npm install deaconn-google-analytics
Credits
1.0.0
10 months ago