forked from ti-nuage/site
Ajout du code pour Matomo en mode production.
This commit is contained in:
@@ -12,6 +12,22 @@
|
||||
<!-- Generated with https://formito.com/tools/favicon -->
|
||||
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg" />
|
||||
{% block head %}{% endblock %}
|
||||
{% if production %}
|
||||
<!-- Matomo -->
|
||||
<script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function() {
|
||||
var u="https://matomo.ti-nuage.fr/";
|
||||
_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>
|
||||
<!-- End Matomo -->
|
||||
{% endif %}
|
||||
</head>
|
||||
<body>
|
||||
<div class="Container">
|
||||
|
||||
Reference in New Issue
Block a user