PHPackages                             fof/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. fof/analytics

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

fof/analytics
=============

Tracks analytics using Google Analytics, Google Optimize/GTM and Matomo

1.1.0(3y ago)3543.1k↓20.7%12[2 issues](https://github.com/FriendsOfFlarum/analytics/issues)MITPHPCI passing

Since Nov 19Pushed 3mo ago5 watchersCompare

[ Source](https://github.com/FriendsOfFlarum/analytics)[ Packagist](https://packagist.org/packages/fof/analytics)[ Docs](https://friendsofflarum.org)[ Fund](https://opencollective.com/fof/donate)[ RSS](/packages/fof-analytics/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (24)Used By (0)

FriendsOfFlarum Analytics
=========================

[](#friendsofflarum-analytics)

[![MIT license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/FriendsOfFlarum/analytics/blob/master/LICENSE.md) [![Latest Stable Version](https://camo.githubusercontent.com/bef28a3c5bb9f1c4b22f0196f955b7018ccaf3af063fe14e48c41d1e9f522922/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f662f616e616c79746963732e737667)](https://packagist.org/packages/fof/analytics) [![Total Downloads](https://camo.githubusercontent.com/d3fc39d1f2b2072b5b2b2587e712e28baa774f64b39096daad6d8a029d13a4d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f662f616e616c79746963732e737667)](https://packagist.org/packages/fof/analytics) [![OpenCollective](https://camo.githubusercontent.com/1903c197bb0307e60d6328653532b8a6b9890b898fbc92e314ab39d699491e74/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e636f6c6c6563746976652d666f662d626c75652e737667)](https://opencollective.com/fof/donate)

A [Flarum](https://flarum.org/) extension that adds Google or Matomo analytics features to your forum.

Screenshot
----------

[](#screenshot)

[![Google Analytics](./docs/ga.png?raw=true)](./docs/ga.png?raw=true)

[![Piwik](./docs/piwik.png?raw=true)](./docs/piwik.png?raw=true)

[![Imgur](https://camo.githubusercontent.com/68ecf182d9cc9ad8086f2a35dbf62a1e85e33e3f834d28b33fddf99fe4c71757/687474703a2f2f692e696d6775722e636f6d2f474d54537a41352e6a7067)](https://camo.githubusercontent.com/68ecf182d9cc9ad8086f2a35dbf62a1e85e33e3f834d28b33fddf99fe4c71757/687474703a2f2f692e696d6775722e636f6d2f474d54537a41352e6a7067)

Goals
-----

[](#goals)

- Allow Google and Matomo analytics service.
- Use Google Optimise to quickly understand how your community can be improved.

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

[](#installation)

```
composer require fof/analytics:*
```

Configuration
-------------

[](#configuration)

- Matomo's URL should not end with an `/`, ex: `domain.com` or `domain.com/matomo`.
- Visit the admin panel to configure your analytics services.
- If enabled, visit the Analytics page in admin to see your Matomo analytics results.

Links
-----

[](#links)

- [Flarum Discuss post](https://discuss.flarum.org/d/1983)
- [Source code on GitHub](https://github.com/FriendsOfFlarum/analytics)
- [Report an issue](https://github.com/FriendsOfFlarum/analytics/issues)
- [Download via Packagist](https://packagist.org/packages/fof/analytics)

An extension by [FriendsOfFlarum](https://friendsofflarum.org/).

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance54

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~178 days

Recently: every ~429 days

Total

22

Last Release

92d ago

Major Versions

0.12.0 → 1.0.02021-06-03

1.1.0 → 2.0.0-beta.12025-10-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16573496?v=4)[IanM](/maintainers/imorland)[@imorland](https://github.com/imorland)

![](https://avatars.githubusercontent.com/u/1630413?v=4)[Gregor Hammerschmidt](/maintainers/GreXXL)[@GreXXL](https://github.com/GreXXL)

![](https://www.gravatar.com/avatar/0538135c1debcef5602dce7ece027909cc832b7a6284ab9189a19aa8de98d60d?d=identicon)[clarkwinkelmann](/maintainers/clarkwinkelmann)

![](https://www.gravatar.com/avatar/1298cdc0b2402a1aa34fb75a254947d655e090d62bd0531311331d369cac934e?d=identicon)[datitisev](/maintainers/datitisev)

---

Top Contributors

[![santiagobiali](https://avatars.githubusercontent.com/u/13974716?v=4)](https://github.com/santiagobiali "santiagobiali (30 commits)")[![luceos](https://avatars.githubusercontent.com/u/504687?v=4)](https://github.com/luceos "luceos (27 commits)")[![clarkwinkelmann](https://avatars.githubusercontent.com/u/5264300?v=4)](https://github.com/clarkwinkelmann "clarkwinkelmann (22 commits)")[![imorland](https://avatars.githubusercontent.com/u/16573496?v=4)](https://github.com/imorland "imorland (12 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (7 commits)")[![davwheat](https://avatars.githubusercontent.com/u/7406822?v=4)](https://github.com/davwheat "davwheat (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![andrewdyer](https://avatars.githubusercontent.com/u/8114523?v=4)](https://github.com/andrewdyer "andrewdyer (1 commits)")[![dsevillamartin](https://avatars.githubusercontent.com/u/6401250?v=4)](https://github.com/dsevillamartin "dsevillamartin (1 commits)")[![karaok491](https://avatars.githubusercontent.com/u/72854852?v=4)](https://github.com/karaok491 "karaok491 (1 commits)")[![rob006](https://avatars.githubusercontent.com/u/5972388?v=4)](https://github.com/rob006 "rob006 (1 commits)")

---

Tags

analyticsflagrowflarumflarum-extensiongoogle-analyticspiwikpiwikmatomoextensionanalyticsgoogle-analyticsgtmflarum

### Embed Badge

![Health badge](/badges/fof-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/fof-analytics/health.svg)](https://phpackages.com/packages/fof-analytics)
```

###  Alternatives

[fof/mason

Add custom fields to discussions

206.0k](/packages/fof-mason)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
