Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added google analytics code.

  • Loading branch information...
commit d85f6d52b0c40e7859a0f1d912de01c29803d10f 1 parent fee3f28
Terry Wang authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 app/views/layouts/application.html.erb
View
13 app/views/layouts/application.html.erb
@@ -34,5 +34,18 @@
</footer>
</div>
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-31018333-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>
Please sign in to comment.
Something went wrong with that request. Please try again.