Skip to content

Commit

Permalink
Analytics added...
Browse files Browse the repository at this point in the history
  • Loading branch information
aitor committed Apr 18, 2010
1 parent 8b54bf0 commit b694597
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/layouts/home.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<body>
<!-- inside -->
<div class="inside">

<%= yield %>

<%= render :partial => 'shared/footer' %>
Expand Down
11 changes: 11 additions & 0 deletions app/views/shared/_footer.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@
<p><%= link_to "Lospresus.de qué van", about_path %></p>
</div>
<!-- /footer -->

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10042045-5");
pageTracker._setDomainName(".lospresus.de");
pageTracker._trackPageview();
} catch(err) {}</script>

0 comments on commit b694597

Please sign in to comment.