Sha256: da5204b7e79cd644aa76f747b2985b781847b27421e41f967e874b91dd19569c

Contents?: true

Size: 666 Bytes

Versions: 6

Compression:

Stored size: 666 Bytes

Contents

<% if container %>
<script>
  dataLayer = [];
</script>

<noscript><iframe src="//www.googletagmanager.com/ns.html?id=<%= container %>"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','<%= container %>');</script>

<script>
dataLayer.push({
  <%= events.map(&:write).join(', ') %>
});
</script>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rack-tracker-1.0.2 lib/rack/tracker/google_tag_manager/template/google_tag_manager.erb
rack-tracker-1.0.1 lib/rack/tracker/google_tag_manager/template/google_tag_manager.erb
rack-tracker-1.0.0 lib/rack/tracker/google_tag_manager/template/google_tag_manager.erb
rack-tracker-0.4.2 lib/rack/tracker/google_tag_manager/template/google_tag_manager.erb
rack-tracker-0.4.1 lib/rack/tracker/google_tag_manager/template/google_tag_manager.erb
rack-tracker-0.4.0 lib/rack/tracker/google_tag_manager/template/google_tag_manager.erb