Ensure page view preceeds any event tracking

This commit is contained in:
Andrew Miner
2016-05-19 20:22:51 -07:00
parent 083cc30eb2
commit cb962f6175
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -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"