Fixed analytics tracking a whole level instead of just its name in one case. Fixed a Sarven typo.

This commit is contained in:
Nick Winter 2014-12-14 07:54:50 -08:00
parent 68678a6057
commit 72d4cad858
2 changed files with 3 additions and 3 deletions

View file

@ -311,10 +311,10 @@ module.exports = LevelOptions =
'oasis':
requiredGear: {}
restrictedGear: {}
'savern-road':
'sarven-road':
requiredGear: {}
restrictedGear: {}
'savern-gaps':
'sarven-gaps':
requiredGear: {}
restrictedGear: {}
'thunderhooves':

View file

@ -110,7 +110,7 @@ module.exports = class LevelLoadingView extends CocoView
onClickStartSubscription: (e) ->
@openModalView new SubscribeModal()
window.tracker?.trackEvent 'Show subscription modal', category: 'Subscription', label: 'level loading', level: @options.level ? 'unknown'
window.tracker?.trackEvent 'Show subscription modal', category: 'Subscription', label: 'level loading', level: @options.level.get('name') ? 'unknown'
window.tracker?.trackPageView "subscription/show-modal", ['Google Analytics']
onSubscribed: ->