diff --git a/website/public/js/controllers/footerCtrl.js b/website/public/js/controllers/footerCtrl.js index 864740c7b9..24d6d560a8 100644 --- a/website/public/js/controllers/footerCtrl.js +++ b/website/public/js/controllers/footerCtrl.js @@ -28,7 +28,7 @@ function($scope, $rootScope, User, $http, Notification, ApiUrl) { // Google Analytics, only in production if (window.env.NODE_ENV === 'production') { // Get experiments API - $.getScript('//www.google-analytics.com/cx/api.js?experiment=OPMHlSzSTj2gVYwUS72wlQ', function(){ + $.getScript('//www.google-analytics.com/cx/api.js?experiment=wud1Ba5qT1m9qR3PP0-Mmg', function(){ $rootScope.variant = cxApi.chooseVariation(); $rootScope.$apply(); diff --git a/website/public/js/services/guideServices.js b/website/public/js/services/guideServices.js index e2c85b370d..d29ec01d2b 100644 --- a/website/public/js/services/guideServices.js +++ b/website/public/js/services/guideServices.js @@ -182,14 +182,22 @@ function($rootScope, User, $timeout, $state) { name: k, backdrop: true, template: function(i,step){ + var showFinish = step.final || k == 'classes'; + var showCounter = k=='intro' && !step.final; + + // Experiment wud1Ba5qT1m9qR3PP0-Mmg , remove this when experiment complete + // 0=No Finish; Yes Counter 1=No Finish; No Counter 2=Yes Finish; Yes Counter 3=Yes Finish; No Counter + showFinish = showFinish || $rootScope.variant==2 || $rootScope.variant==3; + showCounter = showCounter && ($rootScope.variant==0 || $rootScope.variant==2); + return '