From e3ad5e880282c63f8b79a6faa36bef634243873d Mon Sep 17 00:00:00 2001 From: Richard Towers Date: Wed, 26 Jun 2024 13:54:43 +0100 Subject: [PATCH] Remove google analytics code from 404 / 410 pages UA is going to be decommissioned imminently, so these aren't going to work shortly. If we need page view information for bouncer, we can get it from the CDN logs. Removing analytics rather than replacing it with GA4 means we don't have to solve a cookie consent problem. --- public/google-analytics.js | 7 ------- templates/404.erb | 3 --- templates/410.erb | 3 --- 3 files changed, 13 deletions(-) delete mode 100644 public/google-analytics.js diff --git a/public/google-analytics.js b/public/google-analytics.js deleted file mode 100644 index 33c6b8b6..00000000 --- a/public/google-analytics.js +++ /dev/null @@ -1,7 +0,0 @@ - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - - ga('create', 'UA-26179049-8', 'auto'); - ga('send', 'pageview'); diff --git a/templates/404.erb b/templates/404.erb index 221040f2..92e9c02e 100755 --- a/templates/404.erb +++ b/templates/404.erb @@ -6,9 +6,6 @@ 404 - Not Found - <% if ENV['RACK_ENV'] != 'development' %> - - <% end %>
diff --git a/templates/410.erb b/templates/410.erb index 078785d4..21e180e4 100755 --- a/templates/410.erb +++ b/templates/410.erb @@ -6,9 +6,6 @@ 410 - Page Archived - <% if ENV['RACK_ENV'] != 'development' %> - - <% end %>