From 49d646c913069ff1df0513d0f4aea743d9594c69 Mon Sep 17 00:00:00 2001 From: Damir Sultanbekov Date: Fri, 14 Jun 2024 13:17:58 +0400 Subject: [PATCH] Render google-analytics script only in production environment --- app/views/layouts/application.html.erb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index acf6e4be..6e882018 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -2,15 +2,17 @@ <%= @page_title ? @page_title : t(:default_page_title)%> - - - + + gtag('config', 'UA-4865013-2'); + + <% end %>