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

Fix analytics event label for when `shouldABTestPlans: false`

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

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

@@ -210,9 +210,9 @@ define [
 			event_tracking.send 'subscription-funnel', 'plans-page', 'group-inquiry-potential'
 
 		eventLabel = (label, location) ->
-			if location && $scope.plansVariant != 'default'
+			if $scope.plansVariant && location && $scope.plansVariant != 'default'
 				label = label + '-' + location
-			if $scope.plansVariant != 'default'
+			if $scope.plansVariant && $scope.plansVariant != 'default'
 				label += '-exp-' + $scope.plansVariant
 			label