Permalink
Browse files

Added GA tracker

  • Loading branch information...
1 parent 36a6cf3 commit c62517464d19efc54e29a980f33010704ee5b07d Anatoliy Chakkaev committed May 12, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 app/views/layouts/cms_layout.ejs
@@ -4,6 +4,21 @@
<title><%= title %></title>
<%- stylesheet_link_tag('reset', 'style') %>
<%- javascript_include_tag('https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', 'rails', 'application') %>
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-23280347-1']);
+ _gaq.push(['_setDomainName', 'none']);
+ _gaq.push(['_setAllowLinker', true]);
+ _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>
</head>
<body>
<div class="wrap">

0 comments on commit c625174

Please sign in to comment.