summaryrefslogtreecommitdiff
path: root/theme
diff options
context:
space:
mode:
authorSebastian Krzyszkowiak <dos@dosowisko.net>2015-05-15 02:56:49 +0200
committerSebastian Krzyszkowiak <dos@dosowisko.net>2015-05-15 02:56:49 +0200
commitaf5a6d57888d2ab69d225e87e439aa8125bfa749 (patch)
treed683ca512aa73481f505f9c53f60a754c06fc712 /theme
parent0a1d3853b6946609801d965599243f1f9c18624a (diff)
downloadwww-af5a6d57888d2ab69d225e87e439aa8125bfa749.tar.gz
www-af5a6d57888d2ab69d225e87e439aa8125bfa749.tar.bz2
www-af5a6d57888d2ab69d225e87e439aa8125bfa749.zip
update piwik script
Diffstat (limited to 'theme')
-rw-r--r--theme/templates/base.html25
1 files changed, 14 insertions, 11 deletions
diff --git a/theme/templates/base.html b/theme/templates/base.html
index eca70b9..22f0690 100644
--- a/theme/templates/base.html
+++ b/theme/templates/base.html
@@ -188,20 +188,23 @@
</script>
<!-- Piwik -->
- <script type="text/javascript">
- var _paq = _paq || [];
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
- (function() {
- var u=(("https:" == document.location.protocol) ? "https" : "http") + "://dosowisko.net/analytics/piwik//";
+ <script type="text/javascript">
+ var _paq = _paq || [];
+ _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
+ _paq.push(["setCookieDomain", "*.neo900.org"]);
+ _paq.push(["setDomains", ["*.neo900.org"]]);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="//dosowisko.net/analytics/piwik/";
_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 d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
+ })();
</script>
- <noscript><p><img src="http://dosowisko.net/analytics/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
+ <noscript><p><img src="//dosowisko.net/analytics/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
</body>
-</html> \ No newline at end of file
+</html>