diff --git a/.env.production.example b/.env.production.example index 1ab1aa1..cbff1a5 100644 --- a/.env.production.example +++ b/.env.production.example @@ -77,3 +77,6 @@ USGS_EARTHQUAKE_API_URL=https://earthquake.usgs.gov/fdsnws/event/1/ USGS_VOLCANO_API_URL=https://volcanoes.usgs.gov/vsc/api/volcanoApi/ USGS_WATER_SERVICES_API_URL=https://waterservices.usgs.gov/nwis/iv/ NWS_ALERTS_API_URL=https://api.weather.gov/ + +UMAMI_URL= +UMAMI_WEBSITE_ID= diff --git a/config/services.php b/config/services.php index 9adca09..dbaae78 100644 --- a/config/services.php +++ b/config/services.php @@ -37,4 +37,9 @@ ], ], + 'umami' => [ + 'url' => env('UMAMI_URL'), + 'website_id' => env('UMAMI_WEBSITE_ID'), + ], + ]; diff --git a/resources/views/components/layouts/app.blade.php b/resources/views/components/layouts/app.blade.php index 9629e02..5a55f58 100644 --- a/resources/views/components/layouts/app.blade.php +++ b/resources/views/components/layouts/app.blade.php @@ -28,6 +28,12 @@ @vite(['resources/css/app.css', 'resources/js/app.js']) @livewireStyles + + @if (config('services.umami.url') && config('services.umami.website_id')) + + @endif
@vite(['resources/css/app.css', 'resources/js/app.js']) + + @if (config('services.umami.url') && config('services.umami.website_id')) + + @endif