Просмотр исходного кода

Set variant when sixpack request successful

Jessica Lawshe 8 лет назад
Родитель
Сommit
356e31caec
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      services/web/public/coffee/main/plans.coffee

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

@@ -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