state.googleTagManagerAnalytics.containerId: to specify just one container ID
state.googleTagManagerAnalytics.containerIds: to specify a list of container ID's
@frontity/google-tag-manager-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-tag-manager-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 Tag Manager.
pageviewsto Google Analytics via Google Tag Manager
pageview, instead of the default
pageview(the default Event Type
pageview, doesn't work properly in Isomorphic Apps). This custom event is automatically send by
@frontity/google-tag-manager-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 Tag Manager.
actions.analytics.event()must receive an event object with the following properties.
eventfield of the object sent to GTM