[backport] Fixed analytics checkout process

stable
Jesús Espino 2017-10-31 10:58:07 +01:00
parent 0bcc559226
commit 414c02e6c8
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ class AnalyticsService extends taiga.Service
'position': 1,
})
@win.ga('ec:setAction','checkout', {'step': 1,})
@.trackEvent("ecommerce", "start-checkout", step, stepId)
@.trackEvent("ecommerce", "start-checkout", "start", 1)
ecPurchase: (plan_id, plan_name, plan_price) ->
return if not @.initialized
@ -172,7 +172,7 @@ class AnalyticsService extends taiga.Service
})
@win.ga('ec:setAction','checkout', {'step': 2,})
@.trackEvent("ecommerce", "start-checkout", step, stepId)
@.trackEvent("ecommerce", "end-checkout", "end", 2)
@win.ga('ec:addProduct', {
'id': plan_id,