From 12a0eae6a013cea39dc0226b3d8fc3c7936bec5a Mon Sep 17 00:00:00 2001 From: Christoph Groth <christoph.groth@cea.fr> Date: Thu, 12 Sep 2013 14:42:22 +0200 Subject: [PATCH] update piwik code --- templates/base.mako | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/templates/base.mako b/templates/base.mako index 7f79289..3b0ecf0 100644 --- a/templates/base.mako +++ b/templates/base.mako @@ -33,18 +33,20 @@ ${next.body()}\ <!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; - _paq.push(['trackPageView']); - _paq.push(['enableLinkTracking']); + _paq.push(["setDocumentTitle", document.domain + "/" + document.title]); + _paq.push(["setCookieDomain", "*.kwant-project.org"]); + _paq.push(["trackPageView"]); + _paq.push(["enableLinkTracking"]); + (function() { - var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.kwant-project.org//"; - _paq.push(['setTrackerUrl', u+'piwik.php']); - _paq.push(['setSiteId', 1]); - 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); + var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.kwant-project.org/"; + _paq.push(["setTrackerUrl", u+"piwik.php"]); + _paq.push(["setSiteId", "1"]); + 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); })(); </script> -<noscript><p><img src="http://piwik.kwant-project.org/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript> +<noscript><img src="http://piwik.kwant-project.org/piwik.php?idsite=1&rec=1" style="border:0" alt="" /></noscript> <!-- End Piwik Code: Analytics are used by us to improve the site, and not sent to anyone. --> </body> - </html> -- GitLab