feat: add matomo
This commit is contained in:
parent
0b824b48c6
commit
f8b77427e4
4 changed files with 14 additions and 1 deletions
11
assets/development/scripts/main.js
Normal file
11
assets/development/scripts/main.js
Normal 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);
|
||||||
|
})();
|
1
assets/production/scripts/main.js
Normal file
1
assets/production/scripts/main.js
Normal 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
|
@ -72,5 +72,6 @@ Github: https://github.com/lefuturiste
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% block scripts %}{% endblock %}
|
{% block scripts %}{% endblock %}
|
||||||
|
<script src="/scripts/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue