Skip to content

Commit

Permalink
matomo javascript code
Browse files Browse the repository at this point in the history
  • Loading branch information
MaelREBOUX committed Jul 5, 2024
1 parent ee11ae6 commit f6617f7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions _includes/matomo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- 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="//piwik.breizhpositive.bzh/";
_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 -->

1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
</div>
</div>
{% include ga %}
{% include matomo.js %}
</body>
</html>
1 change: 1 addition & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
</div>
</div>
{% include ga %}
{% include matomo.js %}
</body>
</html>

0 comments on commit f6617f7

Please sign in to comment.