Set variant when sixpack request successful

This commit is contained in:
Jessica Lawshe 2018-08-15 13:32:26 -05:00
parent b9e63421a8
commit 356e31caec

View file

@ -152,8 +152,9 @@ define [
if $scope.shouldABTestPlans if $scope.shouldABTestPlans
sixpack.participate 'plans-details', ['default', 'more-details'], (chosenVariation, rawResponse)-> sixpack.participate 'plans-details', ['default', 'more-details'], (chosenVariation, rawResponse)->
$scope.plansVariant = chosenVariation if rawResponse?.status != 'failed'
event_tracking.send 'subscription-funnel', 'plans-page-loaded', chosenVariation $scope.plansVariant = chosenVariation
event_tracking.send 'subscription-funnel', 'plans-page-loaded', chosenVariation
$scope.showPlans = true $scope.showPlans = true