Commit 4c59cbbfed2d406338f1a89fe61a48b7b8fdfe65
Exists in
staging
Merge branch 'master' into staging
* master: reactivating piwik
Showing
1 changed file
with
22 additions
and
1 deletions
Show diff stats
src/index.html
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | <base href="/"> | 8 | <base href="/"> |
9 | <meta name="viewport" content="width=device-width"> | 9 | <meta name="viewport" content="width=device-width"> |
10 | <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> | 10 | <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> |
11 | - | 11 | + |
12 | <!-- OpenGraph --> | 12 | <!-- OpenGraph --> |
13 | <meta property="og:title" content="Dialoga Brasil"> | 13 | <meta property="og:title" content="Dialoga Brasil"> |
14 | <meta property="og:description" content="O País fica melhor quando você participa"> | 14 | <meta property="og:description" content="O País fica melhor quando você participa"> |
@@ -26,6 +26,27 @@ | @@ -26,6 +26,27 @@ | ||
26 | <!-- endinject --> | 26 | <!-- endinject --> |
27 | <!-- endbuild --> | 27 | <!-- endbuild --> |
28 | 28 | ||
29 | + | ||
30 | + <!-- Piwik --> | ||
31 | + <script type="text/javascript"> | ||
32 | + // Don't compute statics from wrong environments | ||
33 | + if(window.location.host.search('dialoga.gov.br') == 0){ | ||
34 | + var _paq = _paq || []; | ||
35 | + _paq.push(['trackPageView']); | ||
36 | + _paq.push(['enableLinkTracking']); | ||
37 | + (function() { | ||
38 | + var u="//estatisticas.dialoga.gov.br/"; | ||
39 | + _paq.push(['setTrackerUrl', u+'piwik.php']); | ||
40 | + _paq.push(['setSiteId', 65]); | ||
41 | + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; | ||
42 | + g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); | ||
43 | + })(); | ||
44 | + } | ||
45 | + </script> | ||
46 | + <noscript><p><img src="//estatisticas.dialoga.gov.br/piwik.php?idsite=65" style="border:0;" alt="" /></p></noscript> | ||
47 | + <!-- End Piwik Code --> | ||
48 | + | ||
49 | + | ||
29 | <!-- Google reCaptcha --> | 50 | <!-- Google reCaptcha --> |
30 | <script src="https://www.google.com/recaptcha/api.js?onload=vcRecaptchaApiLoaded&render=explicit" async defer></script> | 51 | <script src="https://www.google.com/recaptcha/api.js?onload=vcRecaptchaApiLoaded&render=explicit" async defer></script> |
31 | </head> | 52 | </head> |