Sfoglia il codice sorgente

made 7 day free trial the default

Henry Oswald 12 anni fa
parent
commit
8097e6ad71

+ 1 - 1
services/web/app/coffee/Features/Compile/CompileController.coffee

@@ -64,12 +64,12 @@ module.exports = CompileController =
 		CompileController.proxyToClsi(req.url, req, res, next)
 		CompileController.proxyToClsi(req.url, req, res, next)
 
 
 	proxyToClsi: (url, req, res, next = (error) ->) ->
 	proxyToClsi: (url, req, res, next = (error) ->) ->
-		logger.log url: url, "proxying to CLSI"
 		if req.session.compileGroup == "priority"
 		if req.session.compileGroup == "priority"
 			compilerUrl = Settings.apis.clsi_priority.url
 			compilerUrl = Settings.apis.clsi_priority.url
 		else
 		else
 			compilerUrl = Settings.apis.clsi.url
 			compilerUrl = Settings.apis.clsi.url
 		url = "#{compilerUrl}#{url}"
 		url = "#{compilerUrl}#{url}"
+		logger.log url: url, "proxying to CLSI"
 		oneMinute = 60 * 1000
 		oneMinute = 60 * 1000
 		proxy = request(url: url, method: req.method, timeout: oneMinute)
 		proxy = request(url: url, method: req.method, timeout: oneMinute)
 		proxy.pipe(res)
 		proxy.pipe(res)

+ 0 - 5
services/web/app/views/subscriptions/new.jade

@@ -80,12 +80,7 @@ block content
 		Recurly.buildSubscriptionForm(recurlySubscriptionFormConfig);
 		Recurly.buildSubscriptionForm(recurlySubscriptionFormConfig);
 
 
 		window.ab = [
 		window.ab = [
-			{step:1, bucket:"14d", testName:"trial_len"},
-			{step:1, bucket:"7d", testName:"trial_len"},
-
 			{step:1, bucket:"eu-eu", testName:"multi_currency"},
 			{step:1, bucket:"eu-eu", testName:"multi_currency"},
 			{step:1, bucket:"eu-usd", testName:"multi_currency"}
 			{step:1, bucket:"eu-usd", testName:"multi_currency"}
-
-
 		]
 		]
 
 

+ 0 - 2
services/web/app/views/subscriptions/successful_subscription.jade

@@ -35,8 +35,6 @@ block content
 
 
 	script(type="text/javascript").
 	script(type="text/javascript").
 		window.ab = [
 		window.ab = [
-			{step:2, bucket:"14d", testName:"trial_len"},
-			{step:2, bucket:"7d", testName:"trial_len"},
 			{step:2, bucket:"eu-eu", testName:"multi_currency"},
 			{step:2, bucket:"eu-eu", testName:"multi_currency"},
 			{step:2, bucket:"eu-usd", testName:"multi_currency"},
 			{step:2, bucket:"eu-usd", testName:"multi_currency"},
 
 

+ 1 - 8
services/web/public/coffee/ide.coffee

@@ -66,14 +66,7 @@ define [
 
 
 		$scope.startFreeTrial = (source) ->
 		$scope.startFreeTrial = (source) ->
 
 
-			buckets = [
-				{ bucketName:"7d", planCode: "student_free_trial_7_days" }
-				{ bucketName:"14d", planCode: "student_free_trial_14_days" }
-			]
-			bucket = abTestManager.getABTestBucket "trial_len", buckets
-			abTestManager.processTestWithStep("trial_len", bucket.bucketName, 0)
-
-			window.open("/user/subscription/new?planCode=#{bucket.planCode}")
+			window.open("/user/subscription/new?planCode=student_free_trial_7_days")
 			$scope.startedFreeTrial = true
 			$scope.startedFreeTrial = true
 
 
 		window._ide = ide
 		window._ide = ide

+ 3 - 9
services/web/public/coffee/main/plans.coffee

@@ -58,10 +58,6 @@ define [
 		$scope.currencyCode = MultiCurrencyPricing.currencyCode
 		$scope.currencyCode = MultiCurrencyPricing.currencyCode
 
 
 
 
-		buckets = [
-			{ bucketName:"7d", queryString: "_free_trial_7_days", trial_len:7 }
-			{ bucketName:"14d", queryString: "_free_trial_14_days", trial_len:14 }
-		]
 
 
 		if MultiCurrencyPricing.currencyCode != "USD"
 		if MultiCurrencyPricing.currencyCode != "USD"
 			currencyBuckets = [
 			currencyBuckets = [
@@ -72,10 +68,9 @@ define [
 			$scope.currencyCode = multiCurrencyBucket.currency
 			$scope.currencyCode = multiCurrencyBucket.currency
 
 
 
 
-		bucket = abTestManager.getABTestBucket "trial_len", buckets
 
 
-		$scope.trial_len = bucket.trial_len
-		$scope.planQueryString = bucket.queryString
+		$scope.trial_len = 7
+		$scope.planQueryString = '_free_trial_7_days'
 
 
 		$scope.ui =
 		$scope.ui =
 			view: "monthly"
 			view: "monthly"
@@ -91,8 +86,7 @@ define [
 
 
 			if $scope.ui.view == "annual"
 			if $scope.ui.view == "annual"
 				plan = "#{plan}_annual"
 				plan = "#{plan}_annual"
-			else
-				abTestManager.processTestWithStep("trial_len", bucket.bucketName, 0)
+			
 			event_tracking.send 'subscription-funnel', 'sign_up_now_button', plan
 			event_tracking.send 'subscription-funnel', 'sign_up_now_button', plan
 
 
 		$scope.switchToMonthly = ->
 		$scope.switchToMonthly = ->