From 27a05ddea4584c259fe99b54ca73e606a4b9ebbb Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 15 Dec 2022 08:31:41 -0600 Subject: [PATCH 1/2] Matomo: init Run Matomo analytics in production mode. Addresses #453 --- app/views/layouts/blacklight/base.html.erb | 4 ++++ app/views/shared/_matomo_analytics.html.erb | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 app/views/shared/_matomo_analytics.html.erb diff --git a/app/views/layouts/blacklight/base.html.erb b/app/views/layouts/blacklight/base.html.erb index 6e2437f62..ffec81b24 100644 --- a/app/views/layouts/blacklight/base.html.erb +++ b/app/views/layouts/blacklight/base.html.erb @@ -60,5 +60,9 @@ <%= render partial: 'shared/modal' %> <%= render partial: 'shared/javascript_behaviors' %> + + <%- if Rails.env.production? %> + <%= render partial: 'shared/matomo_analytics' %> + <%- end %> diff --git a/app/views/shared/_matomo_analytics.html.erb b/app/views/shared/_matomo_analytics.html.erb new file mode 100644 index 000000000..3377e6ce0 --- /dev/null +++ b/app/views/shared/_matomo_analytics.html.erb @@ -0,0 +1,15 @@ + + + From b3100e026685566bd94336cfa167b3e897eee5ec Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 15 Dec 2022 08:42:19 -0600 Subject: [PATCH 2/2] README: bump for v4.11.0 release Adds Matomo analytics --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e6e44829..471ea585c 100644 --- a/README.md +++ b/README.md @@ -29,4 +29,4 @@ Visit the [project wiki](https://github.com/BTAA-Geospatial-Data-Project/geoport #### Release Version -B1G Geoportal Version v4.10.2 / GEOMG v0.16.0 / GeoBlacklight v4.0.0 +B1G Geoportal Version v4.11.0 / GEOMG v0.16.0 / GeoBlacklight v4.0.0