Sha256: 5dea51cf5e6ef433f86a543145e7dd5f3b64aea5bc2a321126225b54f819bcdd

Contents?: true

Size: 778 Bytes

Versions: 1

Compression:

Stored size: 778 Bytes

Contents

<%= test_exclude do %>
  <% gtm_id = Rails.application.config.applicants_google_tag_manager_id %>
  <% if gtm_id %>

    <!-- Google Tag Manager -->
    <noscript><iframe src="//www.googletagmanager.com/ns.html?id=<%=gtm_id%>"
    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','<%=racym(:applicants_google_tag_manager_id)%>');</script>
    <!-- End Google Tag Manager -->

  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
applicants-0.11.0 app/views/applicants/shared/javascript/_google_tag_manager.html.erb