feat: setup matomo
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Aravinth Manivannan 2022-09-09 19:15:56 +05:30
parent 06eacd9d21
commit 1cd8cb815d
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -20,17 +20,41 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
{% block meta %} {% endblock %}
<!-- Matomo -->
<script>
var _paq = (window._paq = window._paq || []);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setCookieDomain", "*.librepages.org"]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function () {
var u = "//matomo.librepages.org/";
_paq.push(["setTrackerUrl", u + "matomo.php"]);
_paq.push(["setSiteId", "3"]);
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>
<noscript
><p>
<img
src="//matomo.librepages.org/matomo.php?idsite=3&amp;rec=1"
style="border: 0"
alt=""
/></p
></noscript>
<!-- End Matomo Code -->
</head>
<body class="base">
<header>
{% include "nav.html" %}
</header>
<header>{% include "nav.html" %}</header>
<!-- See ../sass/main.scss. Required for pushing footer to the very
bottom of the page -->
<div class="main__content-container">
<main>
{% block content %} {% endblock %}
</main>
<main>{% block content %} {% endblock %}</main>
{% include "footer.html" %}
</div>
</body>