Feature(analytics): Add redux logic for analytics

Add(nav): Add event tracking to nav bar
Add(Drawer): Add event tracking to chat/map drawer
This commit is contained in:
Berkeley Martinez
2016-07-21 16:35:37 -07:00
parent 63a260ae86
commit 5381b0660c
10 changed files with 192 additions and 17 deletions

View File

@@ -0,0 +1,6 @@
export default function sendPageAnalytics(history, ga) {
history.listen(location => {
ga('set', 'page', location.pathname + location.search);
ga('send', 'pageview');
});
}