Skip to content

Commit

Permalink
Merge branch 'release/4.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ewlarson committed Dec 15, 2022
2 parents 36a539b + b3100e0 commit 1480d84
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions app/views/layouts/blacklight/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@

<%= render partial: 'shared/modal' %>
<%= render partial: 'shared/javascript_behaviors' %>

<%- if Rails.env.production? %>
<%= render partial: 'shared/matomo_analytics' %>
<%- end %>
</body>
</html>
15 changes: 15 additions & 0 deletions app/views/shared/_matomo_analytics.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://apps.lib.umn.edu/matomo/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '9']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

0 comments on commit 1480d84

Please sign in to comment.