app/views/layouts/_footer.html.erb
<footer class='footer'>
<div class='container'>
<hr />
<div class='row'>
<div class='col-xs-12 col-md-3'>
© <%= Time.now.year %> <%= link_to 'Zach Schneider', 'https://schneid.io' %>
</div>
<div class='col-xs-12 col-md-9 footer-links'>
<div class='pull-right'>
<%= link_to 'Home', root_path %>
<%= link_to 'About', page_path('about') %>
<%= link_to 'Tutorial', page_path('tutorial') %>
</div>
</div>
</div>
</div>
<% if ENV['GOOGLE_ANALYTICS_CODE'] %>
<%= javascript_tag do %>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '<%= ENV['GOOGLE_ANALYTICS_CODE'] %>', '<%= request.host %>');
ga('send', 'pageview');
<% end %>
<% end %>
</footer>