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 = ()->
|
$scope.switchToStudent = ()->
|
||||||
window.location = "/user/subscription/new?planCode=student_free_trial_7_days¤cy=#{$scope.currencyCode}&cc=#{$scope.data.coupon}"
|
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.paymentMethod = "credit_card"
|
||||||
|
|
||||||
|
|
||||||
$scope.data =
|
$scope.data =
|
||||||
number: ""
|
number: ""
|
||||||
month: ""
|
month: ""
|
||||||
|
@ -59,8 +59,6 @@ define [
|
||||||
.done()
|
.done()
|
||||||
|
|
||||||
pricing.on "change", =>
|
pricing.on "change", =>
|
||||||
event_tracking.sendMB "subscription-form", { plan : pricing.items.plan.code }
|
|
||||||
|
|
||||||
$scope.planName = pricing.items.plan.name
|
$scope.planName = pricing.items.plan.name
|
||||||
$scope.price = pricing.price
|
$scope.price = pricing.price
|
||||||
$scope.trialLength = pricing.items.plan.trial?.length
|
$scope.trialLength = pricing.items.plan.trial?.length
|
||||||
|
|
Loading…
Reference in a new issue