Skip to content
This repository has been archived by the owner on Jan 23, 2020. It is now read-only.

more methods and options #25

Closed
wants to merge 2 commits into from
Closed

more methods and options #25

wants to merge 2 commits into from

Conversation

xMokAx
Copy link

@xMokAx xMokAx commented Jan 4, 2019

  1. added analytics.set() method which calls ReactGA.set() with a required argument fieldsObject and optional argument trackerNames.
  2. analytics.init(): modified the first argument to be configsOrTrackingId which is the trackingId as a string or array of multiple trackers objects and added initOptions object as a second optional argument.
  3. modified ReactGA.event(): now it accepts only one argument options object that requires at least category and action as properties.

@xMokAx xMokAx changed the title more options more methods and options Jan 5, 2019
@sergiodxa
Copy link
Owner

The Next.js team has an official plugin being developed, while plugin supports it's still in canary only, the way the plugin works it's simpler than next-ga and I recommend you to check it and do it manually in your project until it's stable.

Plugin link: https://github.com/zeit/next.js/tree/canary/packages/next-plugin-google-analytics

@sergiodxa sergiodxa closed this Jan 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants