feat: add matomo

This commit is contained in:
Matthieu Bessat 2020-08-30 11:07:20 +02:00
parent 0b824b48c6
commit f8b77427e4
4 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,11 @@
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.werobot.fr/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '4']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();

View file

@ -0,0 +1 @@
var _paq=window._paq=window._paq||[];_paq.push(["trackPageView"]),_paq.push(["enableLinkTracking"]),function(){var a="//analytics.werobot.fr/";_paq.push(["setTrackerUrl",a+"matomo.php"]),_paq.push(["setSiteId","4"]);var e=document,t=e.createElement("script"),p=e.getElementsByTagName("script")[0];t.type="text/javascript",t.async=!0,t.src=a+"matomo.js",p.parentNode.insertBefore(t,p)}();

File diff suppressed because one or more lines are too long

View file

@ -72,5 +72,6 @@ Github: https://github.com/lefuturiste
</div>
{% block scripts %}{% endblock %}
<script src="/scripts/main.js"></script>
</body>
</html>