mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Track trials starts, with source.
This commit is contained in:
parent
2e646729d1
commit
0542d9e05d
2 changed files with 3 additions and 1 deletions
|
@ -348,6 +348,7 @@ define [
|
||||||
|
|
||||||
$scope.startFreeTrial = (source) ->
|
$scope.startFreeTrial = (source) ->
|
||||||
ga?('send', 'event', 'subscription-funnel', 'compile-timeout', source)
|
ga?('send', 'event', 'subscription-funnel', 'compile-timeout', source)
|
||||||
|
event_tracking.sendCountly "subscription-start-trial", { source }
|
||||||
window.open("/user/subscription/new?planCode=student_free_trial_7_days")
|
window.open("/user/subscription/new?planCode=student_free_trial_7_days")
|
||||||
$scope.startedFreeTrial = true
|
$scope.startedFreeTrial = true
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
define [
|
define [
|
||||||
"base"
|
"base"
|
||||||
], (App) ->
|
], (App) ->
|
||||||
App.controller "FreeTrialModalController", ($scope, abTestManager, sixpack)->
|
App.controller "FreeTrialModalController", ($scope, abTestManager, sixpack, event_tracking)->
|
||||||
|
|
||||||
$scope.buttonClass = "btn-primary"
|
$scope.buttonClass = "btn-primary"
|
||||||
|
|
||||||
$scope.startFreeTrial = (source, couponCode) ->
|
$scope.startFreeTrial = (source, couponCode) ->
|
||||||
|
event_tracking.sendCountly "subscription-start-trial", { source }
|
||||||
w = window.open()
|
w = window.open()
|
||||||
sixpack.convert "track-changes-discount", ->
|
sixpack.convert "track-changes-discount", ->
|
||||||
sixpack.participate 'in-editor-free-trial-plan', ['student', 'collaborator'], (planName, rawResponse)->
|
sixpack.participate 'in-editor-free-trial-plan', ['student', 'collaborator'], (planName, rawResponse)->
|
||||||
|
|
Loading…
Reference in a new issue