noscript varianten eingebaut, matomo integration erweitert und als konfiguration aufgenommen.
This commit is contained in:
@@ -182,7 +182,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
Inertia::share('analytics', static function () {
|
||||
$config = config('services.matomo');
|
||||
|
||||
if (! ($config['enabled'] ?? false)) {
|
||||
if (! ($config['enabled'] ?? false) || empty($config['url']) || empty($config['site_id_marketing'])) {
|
||||
return [
|
||||
'matomo' => [
|
||||
'enabled' => false,
|
||||
@@ -194,7 +194,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
'matomo' => [
|
||||
'enabled' => true,
|
||||
'url' => rtrim((string) ($config['url'] ?? ''), '/'),
|
||||
'siteId' => (string) ($config['site_id'] ?? ''),
|
||||
'siteId' => (string) ($config['site_id_marketing'] ?? ''),
|
||||
],
|
||||
];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user