From 4b984d4fac97c06a21fb30a0642079a1c8d1cd3a Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Wed, 29 Jul 2015 09:53:46 +0200 Subject: [PATCH] Made analytics show all characters as the same page --- rpg-docs/Routes/Routes.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpg-docs/Routes/Routes.js b/rpg-docs/Routes/Routes.js index 6600093c..31b11fda 100644 --- a/rpg-docs/Routes/Routes.js +++ b/rpg-docs/Routes/Routes.js @@ -57,6 +57,12 @@ Router.map(function() { document.title = name; } }, + //analytics + trackPageView: false, + onRun: function() { + window.ga && window.ga("send", "pageview", "/character"); + this.next(); + }, }); this.route("loading", {