Skip to content

Commit

Permalink
update conditional for google tag manager script insertion
Browse files Browse the repository at this point in the history
Signed-off-by: ayush-billore <ayush.billore@progress.com>
  • Loading branch information
ayush-billore committed Nov 10, 2023
1 parent 45a97bb commit b184da0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/supermarket/app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
<% end %>
</head>
<body class="<%= controller.controller_name %>">
<!-- Google Tag Manager (noscript) -->
<% if ENV['GTM_ID'] %>
<% if ENV['GTM_ID'] && air_gapped? %>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=<%= ENV['GTM_ID'] %>" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<% end %>
<!-- End Google Tag Manager (noscript) -->

<div class="off-canvas-wrap">
<div class="inner-wrap">
<!-- Chef Property Menu -->
Expand Down

0 comments on commit b184da0

Please sign in to comment.