Sha256: 4d09c9d0d9aa488d335455e361ba492a7baa1793cbebe271620d7597509c526d

Contents?: true

Size: 474 Bytes

Versions: 8

Compression:

Stored size: 474 Bytes

Contents

<% if @map[:google_analytics_id] %>
<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', '<%= @map[:google_analytics_id] %>', 'auto');
  ga('send', 'pageview');
</script>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
travlrmap-1.5.2 views/_google_analytics.erb
travlrmap-1.5.1 views/_google_analytics.erb
travlrmap-1.5.0 views/_google_analytics.erb
travlrmap-1.4.0 views/_google_analytics.erb
travlrmap-1.3.0 views/_google_analytics.erb
travlrmap-1.2.0 views/_google_analytics.erb
travlrmap-1.1.0 views/_google_analytics.erb
travlrmap-1.0.0 views/_google_analytics.erb