change piwik code
This commit is contained in:
parent
30fb477387
commit
d60568c77e
|
@ -28,16 +28,20 @@
|
||||||
<?= $this->render('footer.phtml') ?>
|
<?= $this->render('footer.phtml') ?>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
Loading…
Reference in New Issue