Skip to content

Commit

Permalink
add matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickwasused committed Jul 23, 2024
1 parent 66a1d70 commit e8d4db6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/_includes/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@
{% for tag in tags offset:1 %}<meta property="article:tag" content="{{ tag }}" />
{% endfor %}
{% 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.nickwasused.com/";
_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 -->
</head>
<body>
<header>
Expand Down

0 comments on commit e8d4db6

Please sign in to comment.