added google a
This commit is contained in:
parent
b643046b5b
commit
643950cf52
2 changed files with 15 additions and 0 deletions
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
= csrf_meta_tag
|
||||
= yield(:head)
|
||||
= javascript_include_tag 'vender/ga'
|
||||
|
||||
%body
|
||||
- flash.each do |name, msg|
|
||||
|
|
|
|||
14
public/javascripts/vendor/ga.js
vendored
Normal file
14
public/javascripts/vendor/ga.js
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<script type="text/javascript">
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-17207587-5']);
|
||||
_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>
|
||||
|
||||
Loading…
Reference in a new issue