Sha256: ccf51ccb11c14c97964d1e002e669ec358b39c3e0b17c91e532a6b4a274dfb79

Contents?: true

Size: 739 Bytes

Versions: 41

Compression:

Stored size: 739 Bytes

Contents

<%
if Sufia.config.respond_to? :google_analytics_id
tracking_id = Sufia.config.google_analytics_id
%>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', '<%= tracking_id %>']);
  <% if Rails.env.development? %>
    // This allows us to look at GA data live from locahost
    _gaq.push(['_setDomainName', 'none']);
  <% end %>
  _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>
<% end %>

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
sufia-7.4.1 app/views/_ga.html.erb
sufia-7.4.0 app/views/_ga.html.erb
sufia-7.3.1 app/views/_ga.html.erb
sufia-7.3.0 app/views/_ga.html.erb
sufia-7.3.0.rc3 app/views/_ga.html.erb
sufia-7.3.0.rc2 app/views/_ga.html.erb
sufia-7.3.0.rc1 app/views/_ga.html.erb
sufia-7.2.0 app/views/_ga.html.erb
sufia-6.7.0 app/views/_ga.html.erb
sufia-7.1.0 app/views/_ga.html.erb
sufia-7.0.0 app/views/_ga.html.erb
sufia-7.0.0.rc2 app/views/_ga.html.erb
sufia-7.0.0.rc1 app/views/_ga.html.erb
sufia-7.0.0.beta4 app/views/_ga.html.erb
sufia-7.0.0.beta3 app/views/_ga.html.erb
sufia-7.0.0.beta2 app/views/_ga.html.erb
sufia-7.0.0.beta1 app/views/_ga.html.erb
sufia-6.6.1 app/views/_ga.html.erb
sufia-6.6.0 app/views/_ga.html.erb
sufia-6.5.0 app/views/_ga.html.erb