|
|
@@ -8,10 +8,10 @@ define [
|
|
|
$scope.startFreeTrial = (source, couponCode) ->
|
|
|
w = window.open()
|
|
|
sixpack.convert "track-changes-discount", ->
|
|
|
- sixpack.participate 'free-trial-plan', ['student', 'collaborator'], (planName, rawResponse)->
|
|
|
- ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
|
|
|
- url = "/user/subscription/new?planCode=#{planName}_free_trial_7_days&ssp=#{planName == 'collaborator'}"
|
|
|
- if couponCode?
|
|
|
- url = "#{url}&cc=#{couponCode}"
|
|
|
- $scope.startedFreeTrial = true
|
|
|
- w.location = url
|
|
|
+ sixpack.participate 'in-editor-free-trial-plan', ['student', 'collaborator'], (planName, rawResponse)->
|
|
|
+ ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
|
|
|
+ url = "/user/subscription/new?planCode=#{planName}_free_trial_7_days&ssp=#{planName == 'collaborator'}"
|
|
|
+ if couponCode?
|
|
|
+ url = "#{url}&cc=#{couponCode}"
|
|
|
+ $scope.startedFreeTrial = true
|
|
|
+ w.location = url
|