Skip to content

Commit 51bcf79

Browse files
committed
Fixing analytics events tracking
1 parent 3f9a71e commit 51bcf79

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/store/actions.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,12 @@ export const fetchPrices = (function() {
355355
})()
356356
fetchPrices()
357357

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-
}
358+
export function sendEventToAnalytics(
359+
eventCategory,
360+
eventAction,
361+
eventLabel,
362+
eventValue
363+
) {
364+
if (state.network === MAINNET && typeof ga == 'function')
365+
ga('send', 'event', eventCategory, eventAction)
364366
}

0 commit comments

Comments
 (0)