添加piwik统计代码

This commit is contained in:
wlx 2011-09-24 14:15:15 +00:00
parent 3be5de845c
commit d5ff07a008
1 changed files with 12 additions and 0 deletions

View File

@ -21,5 +21,17 @@
<div class="clearLine"/> <div class="clearLine"/>
<?= $this->render('footer.phtml') ?> <?= $this->render('footer.phtml') ?>
<script type="text/javascript">setPage();</script> <script type="text/javascript">setPage();</script>
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.westgis.ac.cn/" : "http://piwik.westgis.ac.cn/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 5);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://piwik.westgis.ac.cn/piwik.php?idsite=5" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
</body> </body>
</html> </html>