From 4a4c05ee893ae241b5f2b301e120a0c0d04c5c6a Mon Sep 17 00:00:00 2001 From: Anthony Navarro Date: Sat, 23 May 2026 18:41:56 -0700 Subject: [PATCH] add umami tracking --- .env.production.example | 3 +++ config/services.php | 5 +++++ resources/views/components/layouts/app.blade.php | 6 ++++++ resources/views/components/layouts/guest.blade.php | 6 ++++++ 4 files changed, 20 insertions(+) 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