Statamic Fathom Stats is a Statamic addon that adds widgets for the dashboard.
This addon provides the following widgets:
- Pageviews
- Visitors per device
- Visitors per page
- Average duration on site
- Footer
- Fully translateable
- Each widget is optional
- Each widget allows a custom amount of days
- PHP 8.3 or newer
- Statamic 6 (Laravel 12 or 13)
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-statsphp 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',
],
],Development of this addon is sponsored by Lua.
Made with ❤️ in Zurich by Datascale
