Kaynağa Gözat

Set variant when sixpack request successful

Jessica Lawshe 8 yıl önce
ebeveyn
işleme
356e31caec

+ 3 - 2
services/web/public/coffee/main/plans.coffee

@@ -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
-				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
 		$scope.showPlans = true