Skip to content

Commit

Permalink
Merge pull request #742 from carpentries/frog-matomo-1
Browse files Browse the repository at this point in the history
Add matomo self-hosted tracking
  • Loading branch information
maneesha authored Aug 6, 2024
2 parents d63f5d0 + 259b59e commit 7eae354
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ assets/css/to_delete.css
.DS_Store
_config.yml
_data/
count.py
6 changes: 3 additions & 3 deletions _includes/matomo.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://carpentries.matomo.cloud/";
var u="https://matomo.carpentries.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '12']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='//cdn.matomo.cloud/carpentries.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

0 comments on commit 7eae354

Please sign in to comment.