Add GoogleAnalytics event tracking

This commit is contained in:
Andrew Miner
2016-05-11 21:39:43 -07:00
parent c441d75529
commit 16848772a3
21 changed files with 176 additions and 36 deletions
@@ -50,6 +50,7 @@ module.exports = class ItemPageController extends PageController
# Event Methods ################################################################################
craftingPlanButtonClicked: ->
tracker.trackEvent c.tracking.category.craft, 'view-crafting-plan', @model.item.slug
display = @_modPack.findItemDisplay @model.item.slug
@_router.navigate display.craftingUrl, trigger:true
return false