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:
6
client/utils/send-page-analytics.js
Normal file
6
client/utils/send-page-analytics.js
Normal file
@@ -0,0 +1,6 @@
|
||||
export default function sendPageAnalytics(history, ga) {
|
||||
history.listen(location => {
|
||||
ga('set', 'page', location.pathname + location.search);
|
||||
ga('send', 'pageview');
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user