@dmartss/with-ga
v1.0.0
Published
## Usage
Downloads
3
Maintainers
Readme
@dmartss/with-ga
with-ga
Usage
// pass your GA code as first argument
export default withGA("UA-xxxxxxxxx-1", Router)(MyApp);
When the user access a page it will log a pageview to Google Analytics, each page change after that will also trigger a pageview on Google Analytics.