Sha256: 76bb78ce328bc7006f075b742d5029dda58db545f116dc7301bcd23ba0f209a4

Contents?: true

Size: 727 Bytes

Versions: 65

Compression:

Stored size: 727 Bytes

Contents

<%
if Hyrax.config.google_analytics_id?
tracking_id = Hyrax.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

65 entries across 65 versions & 1 rubygems

Version Path
hyrax-3.2.0 app/views/_ga.html.erb
hyrax-2.9.6 app/views/_ga.html.erb
hyrax-3.1.0 app/views/_ga.html.erb
hyrax-2.9.5 app/views/_ga.html.erb
hyrax-3.0.2 app/views/_ga.html.erb
hyrax-3.0.1 app/views/_ga.html.erb
hyrax-3.0.0 app/views/_ga.html.erb
hyrax-3.0.0.pre.rc4 app/views/_ga.html.erb
hyrax-2.9.4 app/views/_ga.html.erb
hyrax-3.0.0.pre.rc3 app/views/_ga.html.erb
hyrax-2.9.3 app/views/_ga.html.erb
hyrax-2.9.2 app/views/_ga.html.erb
hyrax-2.9.1 app/views/_ga.html.erb
hyrax-2.9.0 app/views/_ga.html.erb
hyrax-3.0.0.pre.rc2 app/views/_ga.html.erb
hyrax-2.8.0 app/views/_ga.html.erb
hyrax-2.7.2 app/views/_ga.html.erb
hyrax-2.7.1 app/views/_ga.html.erb
hyrax-2.7.0 app/views/_ga.html.erb
hyrax-2.6.0 app/views/_ga.html.erb