marcreichel/laravel-fathom
A Laravel package for adding privacy-friendly Fathom Analytics to your app. Easily inject the tracking script via a Blade component and track events without compromising user privacy.
Architecture fit
Integration feasibility
composer require, publish config, set FATHOM_SITE_ID and (optionally) an API token in env. The Blade component is a one-line addition to a layout.Technical risk
data-spa option; if not, you own that glue.script-src and may need a nonce. Confirm the component supports nonce injection or plan to override the view.Key questions
Stack fit
trackPageview calls. Budget a small front-end task.Migration path
Compatibility
Sequencing
try/catch, never in a user-facing request path.Maintenance
~ version constraint, a changelog review before each Laravel major upgrade, and a documented "fork-and-vendor" runbook. The MIT license makes that a same-day operation rather than a re-platform.Support
Scaling
Failure modes
Ramp-up
TPM recommendation: Green-light for the script-tag use case — small, reversible, MIT-licensed, and easily forked. Treat the API wrapper as conditional: adopt only behind a cache and a scheduled-job boundary, and only after repository due diligence (currently blocked by the missing repo URL) confirms test coverage and recent, non-rescue maintenance. Set a 12-month review point tied to whether the maintainer ships a release compatible with the next Laravel major.
How can I help you explore Laravel packages today?