0.0.1 • Published 5 years ago

@guivic/next-ga v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@guivic/next-ga

Next.js HOC to integrate easily integrate Google Analytics and log every page change

NOT READY FOR PRODUCTION

Installation

npm install @guivic/next-ga --save

yarn add @guivic/next-ga

Usage

Add the middleware to your custom _app.js

import { withGA } from '@guivic/next-ga';

// ....

export default withGA(MyApp, options);

Options

ValueNotes
GA_IDString. Optional. GA Tracking ID like UA-000000-01. If not provided, it will use process.env.GA_ID

Author

Guillaume Galas from Guivic

License

Licensed under MIT.