Matomo plugin doesn't show statistics

You have to put all config settings into a single return array. If PHP sees a return statement, it gives back control to the calling script, ignoring anything that comes after it.

<?php

return [
    'sylvainjule.matomo.url'        => 'https://example.com/matomo',
    'sylvainjule.matomo.id'         => '1',
    'sylvainjule.matomo.token'      => 'TOKEN',
	
    'medienbaecker.autoresize.maxWidth' => 2048,
    'languages' => true,
    'debug' => true,
    'routes' => [
        [
            'pattern' => 'home/(:any)',
            'action'  => function () {
                return go('home');
            }
        ]
    ],
    'bnomei.robots-txt.sitemap' => 'sitemap.xml',
    'omz13.xmlsitemap' => [
        'excludeChildrenWhenTemplateIs' => ['default'],
        'disableImages' => false,
      ],
  'thumbs' => [
    'autoOrient' => false,
        'srcsets' => [
            'default' => [300, 800, 1024],
            'cover'   => [10, 20, 1200]
        ]
    ]
];
3 Likes