From 04dc10eae0a0d3b427c7b14584e6189189f2a827 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 3 Sep 2015 10:09:23 -0300 Subject: [PATCH] Set site id for production and staging environments --- js/piwik.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/piwik.js b/js/piwik.js index 82d2f2a..9967838 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -5,12 +5,12 @@ define(['piwik'], function(){ _paq.push(["enableLinkTracking"]); var isProduction = /^http:\/\/dialoga\.gov\.br\//.test(window.location.href); - var siteId = isProduction ? 65 : 1; + var siteId = isProduction ? "65" : "1"; (function() { var u="http://estatisticas.dialoga.gov.br/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); - _paq.push(["setSiteId", "65"]); + _paq.push(["setSiteId", siteId]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })(); -- libgit2 0.21.2