Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/utils/GoogleAnalytics.js
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
export const Event = (category, action, label) => { | export const Event = (category, action, label) => { | ||||
ReactGA.event({ | ReactGA.event({ | ||||
category: category, | category: category, | ||||
action: action, | action: action, | ||||
label: label, | label: label, | ||||
}); | }); | ||||
}; | }; | ||||
export default { | const GoogleAnalyticsDefault = { | ||||
GoogleAnalytics, | GoogleAnalytics, | ||||
RouteTracker, | RouteTracker, | ||||
init, | init, | ||||
}; | }; | ||||
export default GoogleAnalyticsDefault; |