将google统计换为了百度统计

This commit is contained in:
lizanle 2015-02-06 10:15:18 +08:00
parent fa8475387a
commit d902d76ae2
1 changed files with 10 additions and 13 deletions

View File

@ -40,18 +40,15 @@
</div>
<div class="debug">
<%= debug(params) if Rails.env.development? %>
<div class="hidden">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46523987-1', 'trustie.net');
ga('send', 'pageview');
</script>
</div>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?67e9738474be83f55f1233001a6ac34e";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</div>
</div>