mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Update campaign ads test groups
This commit is contained in:
parent
3dd322986a
commit
6a4132e057
1 changed files with 5 additions and 4 deletions
|
@ -139,10 +139,11 @@ module.exports = class User extends CocoModel
|
|||
|
||||
getCampaignAdsGroup: ->
|
||||
return @campaignAdsGroup if @campaignAdsGroup
|
||||
group = me.get('testGroupNumber') % 2
|
||||
@campaignAdsGroup = switch group
|
||||
when 0 then 'no-ads'
|
||||
when 1 then 'leaderboard-ads'
|
||||
# group = me.get('testGroupNumber') % 2
|
||||
# @campaignAdsGroup = switch group
|
||||
# when 0 then 'no-ads'
|
||||
# when 1 then 'leaderboard-ads'
|
||||
@campaignAdsGroup = 'leaderboard-ads'
|
||||
@campaignAdsGroup = 'no-ads' if me.isAdmin()
|
||||
application.tracker.identify campaignAdsGroup: @campaignAdsGroup unless me.isAdmin()
|
||||
@campaignAdsGroup
|
||||
|
|
Loading…
Reference in a new issue