Matomo plugin doesn't show statistics

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);
    }
  ]
],
];

The main domain is the same for matomo and the website? and you can reach matomo at the given URL even though it is installed in the root directory?

Should have avoided the term root directory.
It is on the same hierachy as the content and media folder for example.

Like in the config: domain is blabla.de and matomo installed in blabla.de/matomo.

I can’t debug this for you, then. I suggest you try to figure out at what point the if statement fails by inserting some debugging code into the Matomo::allowed()function.

Hi everybody,
i have the same issues like Roman and exotexot. The data is tracked in matomo correctly, but it is not shown in the panel.
I use php 7.1.32 on the server (domainfactory). Could this be a problem?

Thanks to you, and have a nice evening, Roland.

Latest versions of Kirby require PHP 7.2: https://getkirby.com/docs/guide/quickstart#requirements

Thank you @texnixe, i am still on Kirby 3.3.2. And the reason why i am using PHP 7.1 is: When i change to a higher version, my kirby-website is not reachable anymore. Maybe it´s time, to do a complete fresh-install for my website.
I think, that matomo could run then too.

I will report.

Thanks an have a nice day.