Skip to content

Commit

Permalink
Merge pull request #30 from datamade/matomo
Browse files Browse the repository at this point in the history
switching from google analytics to matomo
  • Loading branch information
derekeder authored Jun 6, 2023
2 parents 14581e1 + eb24bb6 commit 8386590
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 53 deletions.
20 changes: 19 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,24 @@
<div class='container-fluid'>
{{content}}
</div>
<script type="text/javascript" src="/js/analytics_lib.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="https://datamade.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '8']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='//cdn.matomo.cloud/datamade.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->



</body>
</html>
52 changes: 0 additions & 52 deletions js/analytics_lib.js

This file was deleted.

0 comments on commit 8386590

Please sign in to comment.