Skip to content

Commit

Permalink
Matomo head
Browse files Browse the repository at this point in the history
  • Loading branch information
mfortini committed Jan 4, 2022
1 parent bed4fcd commit 2c145ea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
17 changes: 0 additions & 17 deletions _includes/_footer_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,3 @@
</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 -->

16 changes: 16 additions & 0 deletions _includes/_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,19 @@
<script type="text/javascript"
src="/assets/js/cookie.js"></script>

<!-- 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 2c145ea

Please sign in to comment.