Ajout du code pour Matomo en mode production.
This commit is contained in:
@@ -12,6 +12,22 @@
|
|||||||
<!-- Generated with https://formito.com/tools/favicon -->
|
<!-- Generated with https://formito.com/tools/favicon -->
|
||||||
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg" />
|
||||||
{% block head %}{% endblock %}
|
{% 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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="Container">
|
<div class="Container">
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ module.exports = new Metalsmith(config.paths.projectRoot)
|
|||||||
.clean(__PROD__)
|
.clean(__PROD__)
|
||||||
.metadata({
|
.metadata({
|
||||||
moment: moment,
|
moment: moment,
|
||||||
|
production: __PROD__,
|
||||||
remove_diatrics: function (e) { return slug(e, { mode: 'rfc3986' }) },
|
remove_diatrics: function (e) { return slug(e, { mode: 'rfc3986' }) },
|
||||||
site: {
|
site: {
|
||||||
title: 'Ti Nuage'
|
title: 'Ti Nuage'
|
||||||
|
|||||||
Reference in New Issue
Block a user