From b3db66e12b47428da83fe5d8cff83dd883dd4d8c Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Fri, 19 Aug 2016 17:10:07 +0100 Subject: [PATCH] Place tracking event on controller load. --- services/web/public/coffee/main/new-subscription.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/web/public/coffee/main/new-subscription.coffee b/services/web/public/coffee/main/new-subscription.coffee index 859d4710ef..96575eb25a 100644 --- a/services/web/public/coffee/main/new-subscription.coffee +++ b/services/web/public/coffee/main/new-subscription.coffee @@ -12,10 +12,10 @@ define [ $scope.switchToStudent = ()-> window.location = "/user/subscription/new?planCode=student_free_trial_7_days¤cy=#{$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