I have the site running on a DomainFactory server. Matomo is installed in root directory, and the only clue I have which may be wrong is that the implementation of the matomo snipper in my footer.php still won’t get past the if condition, even though my code looks like this:
<?php
return [
'url' => 'https://WHATEVER.de',
'home' => 'work',
// Matomo Integration
// for some reason this isnt working
'sylvainjule.matomo.url' => 'https://WHATEVER.de/matomo/',
'sylvainjule.matomo.id' => '1',
'sylvainjule.matomo.token' => '425338d11....WHATEVER',
'sylvainjule.matomo.active' => true,
'sylvainjule.matomo.debug' => true,
// Srcset
'thumbs' => [
'srcsets' => [
'default' => [1000, 1600, 2200]
]
],
// Sitemap
'routes' => [
[
'pattern' => 'sitemap.xml',
'action' => function() {
$pages = site()->pages()->index();
// fetch the pages to ignore from the config settings,
// if nothing is set, we ignore the error page
$ignore = kirby()->option('sitemap.ignore', ['error']);
$content = snippet('sitemap', compact('pages', 'ignore'), true);
// return response with correct header type
return new Kirby\Cms\Response($content, 'application/xml');
}
],
[
'pattern' => 'sitemap',
'action' => function() {
return go('sitemap.xml', 301);
}
]
],
];