Sha256: 9a95b89f08976f77813885ee0a25b045e54402c66327d202b9efe53e7edfacdf
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-tracker-1.1.0 | lib/rack/tracker/google_tag_manager/template/google_tag_manager.erb |