增加访问统计

This commit is contained in:
yafei Lee 2012-06-25 02:55:52 +08:00
parent e838e8ea38
commit b3f37d5ff7
3 changed files with 18 additions and 4 deletions

View File

@ -1,4 +1,4 @@
source 'http://rubygems.org'
source 'http://ruby.taobao.org'
gem 'rails', '3.2.6'

View File

@ -33,7 +33,7 @@ GEM
bson_ext (1.6.4)
bson (~> 1.6.4)
builder (3.0.0)
capistrano (2.11.2)
capistrano (2.12.0)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
@ -57,7 +57,7 @@ GEM
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
highline (1.6.11)
highline (1.6.13)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.4)
@ -83,7 +83,7 @@ GEM
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.3.0)
net-ssh (2.5.2)
net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1)
polyglot (0.3.3)

View File

@ -27,5 +27,19 @@
<%= render "common/slide" %>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32883596-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>