Examples & Recipes
How to Track Pageviews in a React-Redux app
import { LOCATION_CHANGE } from 'react-router-redux';
import { createMiddleware } from 'redux-beacon';
import GoogleAnalytics, { trackPageView } from '@redux-beacon/google-analytics';
const eventsMap = {
[LOCATION_CHANGE]: trackPageView(action => ({
page: action.payload.pathname,
})),
};
const gaMiddleware = createMiddleware(eventsMap, GoogleAnalytics());How to Track Pageviews in an Angular-ngrx app
How to Send Analytics to Multiple Targets
How to Create Your Own Target
Last updated