|
|
@@ -11,9 +11,12 @@ define [
|
|
|
w = window.open()
|
|
|
go = () ->
|
|
|
ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
|
|
|
- url = "/user/subscription/new?planCode=#{plan}&ssp=true"
|
|
|
- if couponCode?
|
|
|
- url = "#{url}&cc=#{couponCode}"
|
|
|
+ if window.redirectToOLFreeTrialUrl?
|
|
|
+ url = window.redirectToOLFreeTrialUrl
|
|
|
+ else
|
|
|
+ url = "/user/subscription/new?planCode=#{plan}&ssp=true"
|
|
|
+ if couponCode?
|
|
|
+ url = "#{url}&cc=#{couponCode}"
|
|
|
$scope.startedFreeTrial = true
|
|
|
|
|
|
switch source
|
|
|
@@ -27,7 +30,7 @@ define [
|
|
|
|
|
|
else
|
|
|
event_tracking.sendMB "subscription-start-trial", { source, plan }
|
|
|
-
|
|
|
+
|
|
|
w.location = url
|
|
|
|
|
|
if $scope.shouldABTestPlans
|