Skip to content

Commit

Permalink
matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
mfortini committed Jan 4, 2022
1 parent 11bf784 commit bed4fcd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ sass:
#
# used in _includes/footer_scripts

google_analytics_tracking_id: UA-29181350-1
#google_analytics_tracking_id: UA-29181350-1



Expand Down
17 changes: 17 additions & 0 deletions _includes/_footer_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,20 @@
</script>
{% endif %}


<!-- 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="//matomo.matteofortini.it/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
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 bed4fcd

Please sign in to comment.