Skip to content

Commit

Permalink
chore: fix matomo.php's path
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed Feb 6, 2024
1 parent a397b51 commit a3c9440
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snappass/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
_paq.push(["enableLinkTracking"]);
(function () {
const u = "{{matomo_url}}";
_paq.push(["setTrackerUrl", u + "matomo.php"]);
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setTrackerUrl", u + "/matomo.php"]);
_paq.push(["setSiteId", "{{site_id}}"]);
let d = document,
g = d.createElement("script"),
s = d.getElementsByTagName("script")[0];
g.async = true;
g.src = u + "matomo.js";
g.src = u + "/matomo.js";
s.parentNode.insertBefore(g, s);
})();
</script>
Expand Down

0 comments on commit a3c9440

Please sign in to comment.