noscript varianten eingebaut, matomo integration erweitert und als konfiguration aufgenommen.

This commit is contained in:
Codex Agent
2025-12-05 17:02:03 +01:00
parent 946d09764a
commit c1bd4c1eb3
15 changed files with 331 additions and 95 deletions

View File

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