mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 22:40:48 +00:00
made 7 day free trial the default
This commit is contained in:
parent
4bd0708029
commit
8097e6ad71
5 changed files with 5 additions and 25 deletions
services/web
app
coffee/Features/Compile
views/subscriptions
public/coffee
|
@ -64,12 +64,12 @@ module.exports = CompileController =
|
|||
CompileController.proxyToClsi(req.url, req, res, next)
|
||||
|
||||
proxyToClsi: (url, req, res, next = (error) ->) ->
|
||||
logger.log url: url, "proxying to CLSI"
|
||||
if req.session.compileGroup == "priority"
|
||||
compilerUrl = Settings.apis.clsi_priority.url
|
||||
else
|
||||
compilerUrl = Settings.apis.clsi.url
|
||||
url = "#{compilerUrl}#{url}"
|
||||
logger.log url: url, "proxying to CLSI"
|
||||
oneMinute = 60 * 1000
|
||||
proxy = request(url: url, method: req.method, timeout: oneMinute)
|
||||
proxy.pipe(res)
|
||||
|
|
|
@ -80,12 +80,7 @@ block content
|
|||
Recurly.buildSubscriptionForm(recurlySubscriptionFormConfig);
|
||||
|
||||
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-usd", testName:"multi_currency"}
|
||||
|
||||
|
||||
]
|
||||
|
||||
|
|
|
@ -35,8 +35,6 @@ block content
|
|||
|
||||
script(type="text/javascript").
|
||||
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-usd", testName:"multi_currency"},
|
||||
|
||||
|
|
|
@ -66,14 +66,7 @@ define [
|
|||
|
||||
$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
|
||||
|
||||
window._ide = ide
|
||||
|
|
|
@ -58,10 +58,6 @@ define [
|
|||
$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"
|
||||
currencyBuckets = [
|
||||
|
@ -72,10 +68,9 @@ define [
|
|||
$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 =
|
||||
view: "monthly"
|
||||
|
@ -91,8 +86,7 @@ define [
|
|||
|
||||
if $scope.ui.view == "annual"
|
||||
plan = "#{plan}_annual"
|
||||
else
|
||||
abTestManager.processTestWithStep("trial_len", bucket.bucketName, 0)
|
||||
|
||||
event_tracking.send 'subscription-funnel', 'sign_up_now_button', plan
|
||||
|
||||
$scope.switchToMonthly = ->
|
||||
|
|
Loading…
Add table
Reference in a new issue