From 8d58e87cd2b7ac25932abd18bee1a13bffa77ee3 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Thu, 11 Jul 2024 16:16:48 +0100 Subject: [PATCH] Don't send healthcheck paths to analytics --- config/initializers/dfe_analytics.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/initializers/dfe_analytics.rb b/config/initializers/dfe_analytics.rb index 02e6201c8b..0e0a31b548 100644 --- a/config/initializers/dfe_analytics.rb +++ b/config/initializers/dfe_analytics.rb @@ -5,6 +5,8 @@ config.environment = HostingEnvironment.name config.queue = :analytics + config.excluded_paths = [%r{^/healthcheck}] + config.enable_analytics = proc do disabled_by_default = Rails.env.development?