mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Stop subscribe modal A/B test
Group A (original) wins.
This commit is contained in:
parent
c2abefb637
commit
8b51c3cb5d
4 changed files with 17 additions and 72 deletions
|
@ -123,19 +123,6 @@ module.exports = class User extends CocoModel
|
||||||
application.tracker.identify gemPromptGroup: @gemPromptGroup unless me.isAdmin()
|
application.tracker.identify gemPromptGroup: @gemPromptGroup unless me.isAdmin()
|
||||||
@gemPromptGroup
|
@gemPromptGroup
|
||||||
|
|
||||||
getSubscribeCopyGroup: ->
|
|
||||||
# A/B Testing alternate subscribe modal copy
|
|
||||||
return @subscribeCopyGroup if @subscribeCopyGroup
|
|
||||||
group = me.get('testGroupNumber') % 6
|
|
||||||
@subscribeCopyGroup = switch group
|
|
||||||
when 0, 1, 2 then 'original'
|
|
||||||
when 3, 4, 5 then 'new'
|
|
||||||
if (not @get('preferredLanguage') or /^en/.test(@get('preferredLanguage'))) and not me.isAdmin()
|
|
||||||
application.tracker.identify subscribeCopyGroup: @subscribeCopyGroup
|
|
||||||
else
|
|
||||||
@subscribeCopyGroup = 'original'
|
|
||||||
@subscribeCopyGroup
|
|
||||||
|
|
||||||
getVideoTutorialStylesIndex: (numVideos=0)->
|
getVideoTutorialStylesIndex: (numVideos=0)->
|
||||||
# A/B Testing video tutorial styles
|
# A/B Testing video tutorial styles
|
||||||
# Not a constant number of videos available (e.g. could be 0, 1, 3, or 4 currently)
|
# Not a constant number of videos available (e.g. could be 0, 1, 3, or 4 currently)
|
||||||
|
|
|
@ -18,12 +18,6 @@
|
||||||
top: -61px
|
top: -61px
|
||||||
left: 0px
|
left: 0px
|
||||||
|
|
||||||
#subscribe-gems
|
|
||||||
position: absolute
|
|
||||||
top: 155px
|
|
||||||
right: 65px
|
|
||||||
|
|
||||||
|
|
||||||
//- Header
|
//- Header
|
||||||
h1
|
h1
|
||||||
position: absolute
|
position: absolute
|
||||||
|
@ -85,22 +79,6 @@
|
||||||
text-decoration: underline
|
text-decoration: underline
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
|
||||||
#selling-points-BTest
|
|
||||||
position: absolute
|
|
||||||
left: 65px
|
|
||||||
top: 150px
|
|
||||||
width: 500px
|
|
||||||
font-weight: normal
|
|
||||||
line-height: 18px
|
|
||||||
color: black
|
|
||||||
font-family: $headings-font-family
|
|
||||||
font-size: 18px
|
|
||||||
|
|
||||||
.point
|
|
||||||
overflow: none
|
|
||||||
text-align: left
|
|
||||||
margin: 20px
|
|
||||||
|
|
||||||
.popover
|
.popover
|
||||||
z-index: 1050
|
z-index: 1050
|
||||||
|
|
||||||
|
@ -164,4 +142,3 @@ html.no-borderimage #subscribe-modal
|
||||||
background-image: url(/images/level/code_toolbar_submit_button_zazz_pressed.png)
|
background-image: url(/images/level/code_toolbar_submit_button_zazz_pressed.png)
|
||||||
padding: 9px 8px 8px 12px
|
padding: 9px 8px 8px 12px
|
||||||
border: 0
|
border: 0
|
||||||
|
|
||||||
|
|
|
@ -6,10 +6,6 @@
|
||||||
else if state === 'retrying'
|
else if state === 'retrying'
|
||||||
#retrying-alert.alert.alert-danger(data-i18n="buy_gems.retrying")
|
#retrying-alert.alert.alert-danger(data-i18n="buy_gems.retrying")
|
||||||
|
|
||||||
else
|
|
||||||
if BTest
|
|
||||||
img(src="/images/pages/play/modal/subscribe-background-blank.png")#subscribe-background
|
|
||||||
img(src="/images/pages/play/modal/subscribe-gems.png")#subscribe-gems
|
|
||||||
else
|
else
|
||||||
img(src="/images/pages/play/modal/subscribe-background.png")#subscribe-background
|
img(src="/images/pages/play/modal/subscribe-background.png")#subscribe-background
|
||||||
|
|
||||||
|
@ -18,17 +14,6 @@
|
||||||
div#close-modal
|
div#close-modal
|
||||||
span.glyphicon.glyphicon-remove
|
span.glyphicon.glyphicon-remove
|
||||||
|
|
||||||
if BTest
|
|
||||||
#selling-points-BTest
|
|
||||||
#point-levels.point
|
|
||||||
.blurb(style="font-style:italic") "Great product ... I have been looking for a good tool to teach my kids programming."
|
|
||||||
#point-heroes.point
|
|
||||||
.blurb Join the CodeCombat subscription and get even more learn-to-code goodness!
|
|
||||||
#point-gems.point
|
|
||||||
.blurb For $#{price}/mo, you'll get access to bonus levels and 3500 extra gems per month! Players who complete bonus levels learn more programming and advance further in the game.
|
|
||||||
#point-items.point
|
|
||||||
.blurb There's no risk: 100% money back guarantee.
|
|
||||||
else
|
|
||||||
#selling-points
|
#selling-points
|
||||||
#point-levels.point
|
#point-levels.point
|
||||||
.blurb(data-i18n="subscribe.levels")
|
.blurb(data-i18n="subscribe.levels")
|
||||||
|
|
|
@ -30,10 +30,6 @@ module.exports = class SubscribeModal extends ModalView
|
||||||
c.stateMessage = @stateMessage
|
c.stateMessage = @stateMessage
|
||||||
c.price = @product.amount / 100
|
c.price = @product.amount / 100
|
||||||
#c.price = 3.99 # Sale
|
#c.price = 3.99 # Sale
|
||||||
|
|
||||||
# A/B Testing alternate subscription copy
|
|
||||||
c.BTest = me.getSubscribeCopyGroup() is 'new'
|
|
||||||
|
|
||||||
return c
|
return c
|
||||||
|
|
||||||
afterRender: ->
|
afterRender: ->
|
||||||
|
|
Loading…
Reference in a new issue