change piwik code

This commit is contained in:
wlx 2014-03-17 09:37:27 +00:00
parent 30fb477387
commit d60568c77e
1 changed files with 15 additions and 11 deletions

View File

@ -30,14 +30,18 @@
</body> </body>
<!-- Piwik --> <!-- Piwik -->
<script type="text/javascript"> <script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.westgis.ac.cn/" : "http://piwik.westgis.ac.cn/"); var _paq = _paq || [];
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E")); _paq.push(["trackPageView"]);
</script><script type="text/javascript"> _paq.push(["enableLinkTracking"]);
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 5); (function() {
piwikTracker.trackPageView(); var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.westgis.ac.cn/";
piwikTracker.enableLinkTracking(); _paq.push(["setTrackerUrl", u+"piwik.php"]);
} catch( err ) {} _paq.push(["setSiteId", "8"]);
</script><noscript><p><img src="http://piwik.westgis.ac.cn/piwik.php?idsite=5" style="border:0" alt="" /></p></noscript> 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>
<!-- End Piwik Code -->
<script>setPage();</script> <script>setPage();</script>
</html> </html>