datascaled / statamic-fathom-stats
Statamic dashboard widgets for Fathom Analytics.
Package info
github.com/datascaled/statamic-fathom-stats
pkg:composer/datascaled/statamic-fathom-stats
2.0.0
2026-07-15 10:56 UTC
Requires
- php: ^8.3
- statamic/cms: ^6.0
README
Statamic Fathom Stats is a Statamic addon that adds widgets for the dashboard.
Features
This addon provides the following widgets:
- Pageviews
- Visitors per device
- Visitors per page
- Average duration on site
- Footer
There's more 🚀
- Fully translateable
- Each widget is optional
- Each widget allows a custom amount of days
Requirements
- PHP 8.3 or newer
- Statamic 6 (Laravel 12 or 13)
How to Install
You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:
composer require datascaled/statamic-fathom-stats
php artisan vendor:publish --tag="statamic-fathom-stats-config"
Add the following values to your env file
FATHOM_API_TOKEN= FATHOM_SITE_ID=
Add the widgets to the widgets array in config/statamic/cp.php:
'widgets' => [ [ 'type' => 'general_statistics', 'days' => 30, 'width' => 'full', ], [ 'type' => 'visitors_per_device', 'days' => 30, 'width' => 'md', ], [ 'type' => 'visitors_per_page', 'days' => 30, 'width' => 'md', ], [ 'type' => 'average_duration', 'days' => 30, 'width' => 'full', ], [ 'type' => 'footer', 'width' => 'full', ], ],
Sponsor
Development of this addon is sponsored by Lua.
Made with ❤️ in Zurich by Datascale
