瀏覽代碼

Fix analytics event label for when `shouldABTestPlans: false`

Jessica Lawshe 8 年之前
父節點
當前提交
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'
 			event_tracking.send 'subscription-funnel', 'plans-page', 'group-inquiry-potential'
 
 
 		eventLabel = (label, location) ->
 		eventLabel = (label, location) ->
-			if location && $scope.plansVariant != 'default'
+			if $scope.plansVariant && location && $scope.plansVariant != 'default'
 				label = label + '-' + location
 				label = label + '-' + location
-			if $scope.plansVariant != 'default'
+			if $scope.plansVariant && $scope.plansVariant != 'default'
 				label += '-exp-' + $scope.plansVariant
 				label += '-exp-' + $scope.plansVariant
 			label
 			label