mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Place tracking event on controller load.
This commit is contained in:
parent
92bc411df5
commit
b3db66e12b
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue