From c1184ef6e117207f6576e4713f2f814ae7188f91 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Sun, 3 Jan 2016 10:25:22 +0700 Subject: [PATCH] Piwik analytics --- game/end.coffee | 3 ++- game/story.coffee | 1 + html/index.html | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/game/end.coffee b/game/end.coffee index 57a17fb..71e69dc 100644 --- a/game/end.coffee +++ b/game/end.coffee @@ -7,6 +7,7 @@ undum.game.init = (character, system) -> event.preventDefault() undum.processClick($(this).attr("href")) ) + _paq.push(['setCustomDimension', 1, false]) # If you use only once() links you can use this "hack": document.onmousedown = (e) -> e.target.click() @@ -16,7 +17,7 @@ undum.game.init = (character, system) -> # Another thing to bear in mind: this game is not a typical Undum game. # It deliberately repeats the situations, so you can repeat "once" links once you re-enter the situation. # So this game has no need in repeatable links at all and this hack is useful. - + character.sandbox.view_smash = 1 character.sandbox.code = "" character.sandbox.knows_the_code = 0 diff --git a/game/story.coffee b/game/story.coffee index 88aea4a..6f39bbc 100644 --- a/game/story.coffee +++ b/game/story.coffee @@ -350,6 +350,7 @@ situation "exitdoor", situation "finale", before: () -> + _paq.push(['setCustomDimension', 1, true]) $("#tools_wrapper").hide() update_ways(this.ways) optionText: "Use the Phone" diff --git a/html/index.html b/html/index.html index ad01567..3f1b1f9 100644 --- a/html/index.html +++ b/html/index.html @@ -75,5 +75,21 @@
+ + + +