mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 22:21:49 +00:00
Set variant when sixpack request successful
This commit is contained in:
parent
b9e63421a8
commit
356e31caec
1 changed files with 3 additions and 2 deletions
|
@ -152,8 +152,9 @@ define [
|
|||
|
||||
if $scope.shouldABTestPlans
|
||||
sixpack.participate 'plans-details', ['default', 'more-details'], (chosenVariation, rawResponse)->
|
||||
$scope.plansVariant = chosenVariation
|
||||
event_tracking.send 'subscription-funnel', 'plans-page-loaded', chosenVariation
|
||||
if rawResponse?.status != 'failed'
|
||||
$scope.plansVariant = chosenVariation
|
||||
event_tracking.send 'subscription-funnel', 'plans-page-loaded', chosenVariation
|
||||
|
||||
$scope.showPlans = true
|
||||
|
||||
|
|
Loading…
Reference in a new issue