From fab7ec3e9878e8bf661792be3483d22f62ccee55 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Tue, 22 Nov 2016 10:50:29 +0000 Subject: [PATCH] Remove test-related tracking and analytics code. --- services/web/public/coffee/ide.coffee | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/services/web/public/coffee/ide.coffee b/services/web/public/coffee/ide.coffee index 9a87d0a06b..6fb69ec712 100644 --- a/services/web/public/coffee/ide.coffee +++ b/services/web/public/coffee/ide.coffee @@ -72,7 +72,6 @@ define [ } $scope.user = window.user - $scope.shouldABTestPlans = false if $scope.user.signUpDate >= '2016-10-27' $scope.shouldABTestPlans = true @@ -86,23 +85,6 @@ define [ $scope.ui.reviewPanelOpen = !$scope.ui.reviewPanelOpen $scope.$digest() - # Only run the header AB test for newly registered users. - _abTestStartDate = new Date(Date.UTC(2016, 8, 28)) - _userSignUpDate = new Date(window.user.signUpDate) - - $scope.shouldABTestHeaderLabels = _userSignUpDate > _abTestStartDate - $scope.headerLabelsABVariant = "" - - if ($scope.shouldABTestHeaderLabels) - sixpack.participate "editor-header", [ "default", "labels"], (chosenVariation) -> - $scope.headerLabelsABVariant = chosenVariation - - $scope.trackABTestConversion = (headerItem) -> - event_tracking.sendMB "header-ab-conversion", { - headerItem: headerItem, - variant: $scope.headerLabelsABVariant - } - # Tracking code. $scope.$watch "ui.view", (newView, oldView) -> if newView? and newView != "editor" and newView != "pdf"