Skip to content
Snippets Groups Projects
Commit a7c1f687 authored by julientaq's avatar julientaq
Browse files

added matomo

parent 2d1a515e
No related branches found
No related tags found
1 merge request!2Menu order
...@@ -80,6 +80,36 @@ ...@@ -80,6 +80,36 @@
{% include "_partials/scripthead.njk" %} {% include "_partials/scripthead.njk" %}
{% endblock %} {% endblock %}
{% block matomo %}
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setCookieDomain", "*.coko.foundation"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "https://stats.coko.foundation/";
_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>
<noscript>
<p><img src="https://stats.coko.foundation/matomo.php?idsite=1&amp;rec=1" style="border:0;" alt=""/></p>
</noscript>
<!-- End Matomo Code -->
{% endblock %}
</head> </head>
<body class="{{class}} {% block bodyclass %}{% endblock %}"> <body class="{{class}} {% block bodyclass %}{% endblock %}">
...@@ -114,15 +144,15 @@ ...@@ -114,15 +144,15 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<article> <article>
{{content | safe}} {{content | safe}}
</article> </article>
{% endblock %} {% endblock %}
</main> </main>
{% block footer %} {% block footer %}
{% include "_partials/footer.njk" %} {% include "_partials/footer.njk" %}
{% endblock %} {% endblock %}
{# check instant #} {# check instant #}
<script src="//instant.page/5.1.0" type="module" integrity="sha384-by67kQnR+pyfy8yWP4kPO12fHKRLHZPfEsiSXR8u2IKcTdxD805MGUXBzVPnkLHw"></script> <script src="//instant.page/5.1.0" type="module" integrity="sha384-by67kQnR+pyfy8yWP4kPO12fHKRLHZPfEsiSXR8u2IKcTdxD805MGUXBzVPnkLHw"></script>
...@@ -130,11 +160,8 @@ ...@@ -130,11 +160,8 @@
<script type="module" src="/js/main.js"></script> <script type="module" src="/js/main.js"></script>
{% endblock %} {% endblock %}
{% block printpreview %}{% endblock %} {% block printpreview %}{% endblock %}
{% block customScripts %} {% block customScripts %}{% endblock %}
{% endblock %}
</body> </body>
</html> </html>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment