PHPackages                             stenvdb/craft-fathom-analytics - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. stenvdb/craft-fathom-analytics

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

stenvdb/craft-fathom-analytics
==============================

Statistics and chart widgets for Fathom analytics.

1.1.4(5y ago)93.7k[1 issues](https://github.com/stenvdb/craft-fathom-analytics/issues)[6 PRs](https://github.com/stenvdb/craft-fathom-analytics/pulls)MITPHP

Since Feb 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/stenvdb/craft-fathom-analytics)[ Packagist](https://packagist.org/packages/stenvdb/craft-fathom-analytics)[ RSS](/packages/stenvdb-craft-fathom-analytics/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (7)Dependencies (1)Versions (14)Used By (0)

Fathom Analytics for Craft CMS
==============================

[](#fathom-analytics-for-craft-cms)

Statistics and chart widgets for Fathom Lite.

[![Screenshot](resources/img/screenshot.png)](resources/img/screenshot.png)

A word about privacy &amp; Fathom
---------------------------------

[](#a-word-about-privacy--fathom)

If you care about privacy and website-analytics, I encourage you to [read some of my toughts about it](https://stenvdb.be/articles/problem-with-website-analytics), explaining why I made the move from Google Analytics to Fathom.

**TL;DR**

[Fathom](https://usefathom.com/) is a Google Analytics alternative. They offer [Fathom Lite](https://github.com/usefathom/fathom), which is free and you can self-host. Thereby no data is being shared with third party services.

Although Fathom Lite **does not collect any personally identifiable information** (and is GDPR compliant), it currently still uses a cookie (and is not PECR compliant without a cookie notice). If you need a cookie-free solution, I suggest switching to Fathom Pro. Fathom Lite might become cookie-free in a future update though 🤞.

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later and [Fathom Lite](https://github.com/usefathom/fathom)

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require stenvdb/craft-fathom-analytics

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Fathom Analytics.

Fathom Analytics Overview
-------------------------

[](#fathom-analytics-overview)

This plugin **only works with Fathom Lite**, the self-hosted open source version. Reasons being Fathom does not have an official documented API. Once Fathom releases a documented API ([which might be in the works](https://trello.com/c/wu4WMy4U/16-api)), I'll consider providing support for Fathom Pro. In the meantime, this plugin uses Fathom's already great internal API.

Configuring Fathom Analytics
----------------------------

[](#configuring-fathom-analytics)

This plugin obviously requires Fathom running on one of your servers. Once it is up and running (which is [super easy](https://github.com/usefathom/fathom/blob/master/docs/Installation%20instructions.md)), configure Fathom Analytic's settings in a `config/fathom-anaytics.php` file (multi-site config is supported). See an example below:

```
