Skip to content

Commit

Permalink
add matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Apr 11, 2022
1 parent 07cd7ff commit 221a6d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/layouts/decidim/_head_extra.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<% if current_organization.favicon.blank? %>
<%= favicon_link_tag asset_path("default_favicon.ico") %>
<% end %>
<!-- Matomo Tag Manager -->
<script>
var _mtm = window._mtm = window._mtm || [];
_mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'});
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='https://matomo.dadess.cat/js/container_NKU4kG4d.js'; s.parentNode.insertBefore(g,s);
</script>
<!-- End Matomo Tag Manager -->

0 comments on commit 221a6d0

Please sign in to comment.