<%# if Rails.env == 'production' %> // $(document).on('page:load', function() { // // This way of determining the page comes from Google Universal Analytics documentation // // var loc = window.location.protocol + '//' + window.location.hostname + window.location.pathname + window.location.search; // var loc = window.location.pathname + window.location.search; // ga('send', 'pageview', loc); // }); <%# end %>