mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Use intelligent /user/trial v2 URL for v2 trials
This commit is contained in:
parent
87f99f1cdc
commit
2ff5ecb342
2 changed files with 4 additions and 3 deletions
|
@ -98,7 +98,8 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
|
|
||||||
- if (settings.overleaf && settings.overleaf.useOLFreeTrial)
|
- if (settings.overleaf && settings.overleaf.useOLFreeTrial)
|
||||||
script.
|
script.
|
||||||
window.redirectToOLFreeTrialUrl = '!{settings.overleaf.host}/users/trial'
|
window.useV2TrialUrl = true
|
||||||
|
|
||||||
|
|
||||||
body
|
body
|
||||||
if(settings.recaptcha)
|
if(settings.recaptcha)
|
||||||
|
|
|
@ -11,8 +11,8 @@ define [
|
||||||
w = window.open()
|
w = window.open()
|
||||||
go = () ->
|
go = () ->
|
||||||
ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
|
ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
|
||||||
if window.redirectToOLFreeTrialUrl?
|
if window.useV2TrialUrl
|
||||||
url = window.redirectToOLFreeTrialUrl
|
url = "/user/trial"
|
||||||
else
|
else
|
||||||
url = "/user/subscription/new?planCode=#{plan}&ssp=true"
|
url = "/user/subscription/new?planCode=#{plan}&ssp=true"
|
||||||
if couponCode?
|
if couponCode?
|
||||||
|
|
Loading…
Reference in a new issue