mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix(analytics): remove a/b on play button, fixes #4947
This commit is contained in:
@@ -29,7 +29,7 @@ function($scope, $rootScope, User, $http, Notification, ApiUrl) {
|
|||||||
if (window.env.NODE_ENV === 'production') {
|
if (window.env.NODE_ENV === 'production') {
|
||||||
// Get experiments API
|
// Get experiments API
|
||||||
$.getScript('//www.google-analytics.com/cx/api.js?experiment=OPMHlSzSTj2gVYwUS72wlQ', function(){
|
$.getScript('//www.google-analytics.com/cx/api.js?experiment=OPMHlSzSTj2gVYwUS72wlQ', function(){
|
||||||
$rootScope.chosenVariation = cxApi.chooseVariation();
|
$rootScope.variant = cxApi.chooseVariation();
|
||||||
$rootScope.$apply();
|
$rootScope.$apply();
|
||||||
|
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
|
|||||||
@@ -20,8 +20,7 @@ block content
|
|||||||
//while acting similarly to a logo
|
//while acting similarly to a logo
|
||||||
h1#tagline=env.t('tagline')
|
h1#tagline=env.t('tagline')
|
||||||
p.lead
|
p.lead
|
||||||
button.btn.btn-primary.btn-lg#frontpage-play-button(ng-click='playButtonClick()')
|
button.btn.btn-primary.btn-lg#frontpage-play-button(ng-click='playButtonClick()')=env.t('playButton')
|
||||||
| {{chosenVariation==1 ? "Play Now - It's Free!" : chosenVariation==2 ? "Start" : "#{env.t('playButton')}"}}
|
|
||||||
hr
|
hr
|
||||||
img(src='/marketing/devices.png')
|
img(src='/marketing/devices.png')
|
||||||
//we'd want the tagline centered, for sure, and a bit more pop, but without using jumbotron
|
//we'd want the tagline centered, for sure, and a bit more pop, but without using jumbotron
|
||||||
|
|||||||
Reference in New Issue
Block a user