Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@ SENTRY_TRACES_SAMPLE_RATE=1.0

FILAMENT_SPA=true
FILAMENT_SIDEBAR_ON_DESKTOP=true

# Fathom Analytics (privacy-friendly analytics)
# Get your site ID from https://usefathom.com
FATHOM_SITE_ID=
4 changes: 4 additions & 0 deletions config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@
'gravatar' => [
'base_url' => rtrim(env('GRAVATAR_BASE_URL', 'https://www.gravatar.com/avatar'), '/'),
],

'fathom' => [
'site_id' => env('FATHOM_SITE_ID'),
],
];
3 changes: 3 additions & 0 deletions resources/views/components/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ function updateTheme() {

@stack('javascript')
<x-impersonate::banner/>
@if(config('services.fathom.site_id'))
<script src="https://cdn.usefathom.com/script.js" data-site="{{ config('services.fathom.site_id') }}" defer></script>
@endif
{!! app(\App\Settings\GeneralSettings::class)->custom_scripts !!}
</body>
</html>
Loading