just depend on the ga code
This commit is contained in:
parent
2e8a197933
commit
fb96164db8
|
@ -3,8 +3,7 @@ require 'travis/location'
|
|||
Ember.Route.reopen
|
||||
enter: (router) ->
|
||||
@_super(router)
|
||||
if @get('isLeafRoute') && !window.location.host.match(/staging|localhost/)
|
||||
_gaq.push(['_trackPageview', @absoluteRoute(router)])
|
||||
_gaq.push(['_trackPageview', @absoluteRoute(router)]) if @get('isLeafRoute') && _gaq
|
||||
|
||||
defaultRoute = Ember.Route.extend
|
||||
route: '/'
|
||||
|
|
|
@ -107,7 +107,7 @@ Storage = Em.Object.extend
|
|||
@store = app.store
|
||||
$ => app.initialize()
|
||||
|
||||
setupGoogleAnalytics()
|
||||
setupGoogleAnalytics() if Travis.config.ga_code
|
||||
|
||||
require 'ext/i18n'
|
||||
require 'travis/ajax'
|
||||
|
|
Loading…
Reference in New Issue
Block a user