From 6c92238f374ea5495b3d08592507f0bd1d4f2c9e Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Wed, 6 Jun 2018 10:05:43 -0500 Subject: [PATCH] Fix analytics event label for when `shouldABTestPlans: false` --- services/web/public/coffee/main/plans.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/main/plans.coffee b/services/web/public/coffee/main/plans.coffee index 7eb63607c0..2915425dc0 100644 --- a/services/web/public/coffee/main/plans.coffee +++ b/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