|
|
@@ -65,10 +65,17 @@ define [
|
|
|
$scope.chat = {}
|
|
|
|
|
|
$scope.startFreeTrial = (source) ->
|
|
|
+
|
|
|
+ testBuckets = [
|
|
|
+ { bucketName:"student_control", planName:"student"}
|
|
|
+ { bucketName:"collab_test", planName:"collaborator"}
|
|
|
+ ]
|
|
|
+ editorPlanBucket = abTestManager.getABTestBucket "editor_plan", testBuckets
|
|
|
+ abTestManager.processTestWithStep("editor_plan", editorPlanBucket.bucketName, 0)
|
|
|
ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
|
|
|
- window.open("/user/subscription/new?planCode=student_free_trial_7_days")
|
|
|
+ window.open("/user/subscription/new?planCode=#{editorPlanBucket.planName}_free_trial_7_days&ssp=#{editorPlanBucket.planName == 'collaborator'}")
|
|
|
$scope.startedFreeTrial = true
|
|
|
-
|
|
|
+
|
|
|
window._ide = ide
|
|
|
|
|
|
ide.project_id = $scope.project_id = window.project_id
|