From 8d0dde0b9fa779a1f6ea41aed9059150cdebd533 Mon Sep 17 00:00:00 2001 From: Randall Floyd Date: Mon, 22 Apr 2024 16:58:38 -0400 Subject: [PATCH] Refining Google Analytics in base layout to suppress for dev environments --- app/views/layouts/blacklight/base.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/blacklight/base.html.erb b/app/views/layouts/blacklight/base.html.erb index 38882cd..f718062 100644 --- a/app/views/layouts/blacklight/base.html.erb +++ b/app/views/layouts/blacklight/base.html.erb @@ -14,7 +14,7 @@ <%= stylesheet_link_tag "application", media: "all" %> <%= javascript_include_tag "application" %> - <% if ENV['SITE_HOST']&.include?('.edu') %> + <% unless ENV['SITE_HOST'] =~ /localhost|devel|stage|test|preview/ %>