!!! 5
%head

  %title= yield(:title)
  %link{ :rel => 'author', :href => 'humans.txt' }
  %meta{ :name => 'viewport', :content => 'width=device-width, initial-scale=1, maximum-scale=1' }

  = favicon_link_tag 'favicon.png'

  = stylesheet_link_tag 'application'

  - # jQuery — Google Ajax API CDN Hosted
  = javascript_include_tag 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'

  - # analytics in production
  - if Rails.env.production?
    :javascript
      // insert analytics

!!! 5
%head

  %title= yield(:title)
  %link{ :rel => 'author', :href => 'humans.txt' }
  %meta{ :name => 'viewport', :content => 'width=device-width, initial-scale=1, maximum-scale=1' }

  = favicon_link_tag 'favicon.png'

  = stylesheet_link_tag 'application'

  - # jQuery — Google Ajax API CDN Hosted
  = javascript_include_tag 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'

  - # GAS — Google Analytics on Steroids (https://github.com/CardinalPath/gas)
  - if Rails.env.production?
    :javascript
      <script type="text/javascript">
      var _gas = _gas || [];
      _gas.push(['_setAccount', 'UA-36825882-1']);
      _gas.push(['_setDomainName', '.mallowapp.com']);
      _gas.push(['_trackPageview']);
      _gas.push(['_gasTrackForms']);
      _gas.push(['_gasTrackOutboundLinks']);
      _gas.push(['_gasTrackMaxScroll']);
      _gas.push(['_gasTrackDownloads']);
      _gas.push(['_gasTrackYoutube', {force: true}]);
      _gas.push(['_gasTrackVimeo', {force: true}]);
      _gas.push(['_gasTrackMailto']);

      (function() {
      var ga = document.createElement('script');
      ga.type = 'text/javascript';
      ga.async = true;
      ga.src = '//cdnjs.cloudflare.com/ajax/libs/gas/1.10.1/gas.min.js';
      var s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(ga, s);
      })();
      </script>

Install Google Analytics on Steroids (GAS)
Install Google Analytics on Steroids (GAS)