Place tracking event on controller load.

This commit is contained in:
Paulo Reis 2016-08-19 17:10:07 +01:00
parent 92bc411df5
commit b3db66e12b

View file

@ -12,10 +12,10 @@ define [
$scope.switchToStudent = ()->
window.location = "/user/subscription/new?planCode=student_free_trial_7_days&currency=#{$scope.currencyCode}&cc=#{$scope.data.coupon}"
event_tracking.sendMB "subscription-form", { plan : window.plan_code }
$scope.paymentMethod = "credit_card"
$scope.data =
number: ""
month: ""
@ -59,8 +59,6 @@ define [
.done()
pricing.on "change", =>
event_tracking.sendMB "subscription-form", { plan : pricing.items.plan.code }
$scope.planName = pricing.items.plan.name
$scope.price = pricing.price
$scope.trialLength = pricing.items.plan.trial?.length