diff --git a/game/begin.coffee b/game/begin.coffee index 5d678f1..6637c2d 100644 --- a/game/begin.coffee +++ b/game/begin.coffee @@ -137,6 +137,9 @@ actlink = (content, ref) -> sysroom = (name, options) -> options.canSave = false options.enter = () -> + if salet.interactive and _paq? + # Piwik analytics: room stats + _paq.push(['trackPageView', name]) $(".action").hide() options.exit = () -> if document.querySelector('#current-room') @@ -179,6 +182,9 @@ croom = (name, spec) -> """ retval += '' spec.enter = () -> + if salet.interactive and _paq? + # Piwik analytics: room stats + _paq.push(['trackPageView', name]) salet.character.update_sidebar() if @onEnter? @onEnter() diff --git a/game/story.coffee b/game/story.coffee index f17e5cb..1daf6de 100644 --- a/game/story.coffee +++ b/game/story.coffee @@ -116,8 +116,12 @@ croom "bar", $("#content").toggleClass("narrow") $(".ways").hide() if salet.here().chaos == 0 + if salet.interactive and _paq? + _paq.push(['setCustomDimension', 1, true]); return "message_x".l() else + if salet.interactive and _paq? + _paq.push(['setCustomDimension', 1, false]); return "message_ruined".l() examine: () -> salet.here().units[0].act() diff --git a/html/en.html b/html/en.html index debcd90..8e59fc7 100644 --- a/html/en.html +++ b/html/en.html @@ -6,6 +6,22 @@ + + + +
diff --git a/html/index.html b/html/index.html index 749861f..4c9f922 100644 --- a/html/index.html +++ b/html/index.html @@ -6,6 +6,22 @@ + + + +