From b184da0ef3311a1ce648f32dda1ded8ef8debdf8 Mon Sep 17 00:00:00 2001 From: ayush-billore Date: Fri, 10 Nov 2023 11:14:44 +0530 Subject: [PATCH] update conditional for google tag manager script insertion Signed-off-by: ayush-billore --- src/supermarket/app/views/layouts/application.html.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/supermarket/app/views/layouts/application.html.erb b/src/supermarket/app/views/layouts/application.html.erb index 18d2b500e..73c2e91c8 100644 --- a/src/supermarket/app/views/layouts/application.html.erb +++ b/src/supermarket/app/views/layouts/application.html.erb @@ -23,11 +23,12 @@ <% end %> - - <% if ENV['GTM_ID'] %> + <% if ENV['GTM_ID'] && air_gapped? %> + + <% end %> - +