Ensure page view preceeds any event tracking
This commit is contained in:
@@ -61,6 +61,8 @@ storage = new Storage storage:global.localStorage
|
||||
|
||||
########################################################################################################################
|
||||
|
||||
tracker.trackPageView()
|
||||
|
||||
{CraftingGuideClient} = require 'crafting-guide-common'
|
||||
client = _(new CraftingGuideClient(baseUrl:apiBaseUrl)).extend Backbone.Events
|
||||
client.onStatusChanged = (client, oldStatus, newStatus)->
|
||||
@@ -79,5 +81,4 @@ site.loadDefaultModPack()
|
||||
site.loadCurrentUser()
|
||||
|
||||
Backbone.history.start pushState:true
|
||||
tracker.trackPageView()
|
||||
logger.info -> "CraftingGuide is ready"
|
||||
|
||||
@@ -15,4 +15,6 @@ script.
|
||||
ga('create', 'UA-54970416-2', 'crafting-guide.com');
|
||||
ga('require', 'displayfeatures');
|
||||
ga('require', 'linkid', 'linkid.js');
|
||||
} else {
|
||||
window.ga = function() {}
|
||||
}
|
||||
|
||||
@@ -27,11 +27,11 @@ html
|
||||
|
||||
.view__footer
|
||||
|
||||
include ../includes/_google_analytics.jade
|
||||
script(src="/external.js")
|
||||
script(src="/internal.js")
|
||||
|
||||
include ../includes/_google_adsense.jade
|
||||
include ../includes/_google_analytics.jade
|
||||
include ../includes/_google_sitelinks.jade
|
||||
include ../includes/_twitter_follow.jade
|
||||
|
||||
|
||||
Reference in New Issue
Block a user