We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f9a71e commit 51bcf79Copy full SHA for 51bcf79
src/store/actions.js
@@ -355,10 +355,12 @@ export const fetchPrices = (function() {
355
})()
356
fetchPrices()
357
358
-export function sendEventToAnalytics() {
359
- if (state.network === MAINNET && typeof ga == 'function') {
360
- const args = Array.prototype.slice.call(arguments, 0)
361
- args.unshift('send', 'event')
362
- ga.apply(this, args)
363
- }
+export function sendEventToAnalytics(
+ eventCategory,
+ eventAction,
+ eventLabel,
+ eventValue
+) {
364
+ if (state.network === MAINNET && typeof ga == 'function')
365
+ ga('send', 'event', eventCategory, eventAction)
366
}
0 commit comments