Kaynağa Gözat

Updated piwik tracking code

Thomas Buck 7 yıl önce
ebeveyn
işleme
45c0fa694b
No account linked to committer's email address
1 değiştirilmiş dosya ile 12 ekleme ve 11 silme
  1. 12
    11
      page.html

+ 12
- 11
page.html Dosyayı Görüntüle

@@ -144,18 +144,19 @@
144 144
     <img src="http://xythobuz.de/stats/count.php?img" alt="Analytics">
145 145
     <!-- Piwik -->
146 146
     <script type="text/javascript">
147
-        var _paq = _paq || [];
148
-        _paq.push(['trackPageView']);
149
-        _paq.push(['enableLinkTracking']);
150
-        (function() {
151
-            var u=(("https:" == document.location.protocol) ? "https" : "http") + "://xythobuz.de/piwik/";
152
-            _paq.push(['setTrackerUrl', u+'piwik.php']);
153
-            _paq.push(['setSiteId', 1]);
154
-            var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
155
-            g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
156
-        })();
147
+      var _paq = _paq || [];
148
+      /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
149
+      _paq.push(['trackPageView']);
150
+      _paq.push(['enableLinkTracking']);
151
+      (function() {
152
+        var u="//xythobuz.de/piwik/";
153
+        _paq.push(['setTrackerUrl', u+'piwik.php']);
154
+        _paq.push(['setSiteId', '1']);
155
+        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
156
+        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
157
+      })();
157 158
     </script>
158
-    <noscript><p><img src="http://xythobuz.de/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
159
+    <noscript><p><img src="//xythobuz.de/piwik/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
159 160
     <!-- End Piwik Code -->
160 161
 </body>
161 162
 </html>

Loading…
İptal
Kaydet