Commit 04dc10eae0a0d3b427c7b14584e6189189f2a827

Authored by Victor Costa
1 parent bc5cda79

Set site id for production and staging environments

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
js/piwik.js
... ... @@ -5,12 +5,12 @@ define(['piwik'], function(){
5 5 _paq.push(["enableLinkTracking"]);
6 6  
7 7 var isProduction = /^http:\/\/dialoga\.gov\.br\//.test(window.location.href);
8   - var siteId = isProduction ? 65 : 1;
  8 + var siteId = isProduction ? "65" : "1";
9 9  
10 10 (function() {
11 11 var u="http://estatisticas.dialoga.gov.br/";
12 12 _paq.push(["setTrackerUrl", u+"piwik.php"]);
13   - _paq.push(["setSiteId", "65"]);
  13 + _paq.push(["setSiteId", siteId]);
14 14 var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
15 15 g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
16 16 })();
... ...