@dmartss/with-ga

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i @dmartss/with-ga

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

71.2 kB

Total Files

8

Last publish

Collaborators

  • dmartss