state.googleAnalytics.trackingId: to specify just one tracking ID
state.googleAnalytics.trackingIds: to specify a list of tracking ID's
@frontity/google-analyticspackage can co-exist with some other
analyticspackages. Once we have properly installed and configured these
analyticspackages, their actions will be centralized by the
actions.analytics.pageview()will take into account settings in
actions.analytics.event()will take into account settings in
@frontity/google-analyticsis configured and enabled for pageviews in
state.analytics.pageviews, every time a link changes (or every time
action.router.set(link)is launched) a tracking for that page will be sent to Google Analytics by using internally
@frontity/google-analyticsis configured and enabled for events in
state.analytics.events, every time you call the method
actions.analytics.event()from any of your React components, the proper tracking info will be sent to Google Analytics.
actions.analytics.event()must receive an event object with the following properties.
payloadobject has to have the following format: