Matomo Image Tracking

This commit is contained in:
Kenji Bailly 2022-03-16 23:43:36 +01:00
parent 9d49d28d30
commit dc8b7aad9b

View File

@ -195,6 +195,14 @@ server
</head>
<body>
${
runtimeConfig.MATOMO_URL && runtimeConfig.MATOMO_SITE_ID
? `
<!-- Matomo Image Tracker-->
<img referrerpolicy="no-referrer-when-downgrade" src="${runtimeConfig.MATOMO_URL}matomo.php?idsite=${runtimeConfig.MATOMO_SITE_ID}&amp;rec=1" style="border:0" alt="" />
<!-- End Matomo -->`
: ''
}
<div id="root">${markup}</div>
<script>window.env = ${serialize(runtimeConfig)};</script>
${jsScriptTagsFromAssets(assets, 'client', ' defer crossorigin')}
@ -208,4 +216,4 @@ server.get('/healthcheck', (req, res) => {
res.status(200).json({ status: 'ok' });
});
export default server;
export default server;