Sha256: c7de4f3aa350b33f0f7d047ceb6457b02ae614540639566b449794b00bbabdc8

Contents?: true

Size: 518 Bytes

Versions: 7

Compression:

Stored size: 518 Bytes

Contents

<% if Rails.env.production? %>
  <% if not @ga_id.empty? %>
  <script>
    (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', '<%= @ga_id %>', '<%= @ga_domain %>');
    ga('send', 'pageview');
  </script>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
character-1.0.6 app/views/shared/_google_analytics.html.erb
character-1.0.5 app/views/shared/_google_analytics.html.erb
character-1.0.4 app/views/shared/_google_analytics.html.erb
character-1.0.3 app/views/shared/_google_analytics.html.erb
character-1.0.2 app/views/shared/_google_analytics.html.erb
character-1.0.1 app/views/shared/_google_analytics.html.erb
character-1.0.0 app/views/shared/_google_analytics.html.erb