# panphp/pan

> A simple, lightweight, and privacy-focused product analytics php package

Navigation: [Analytics & SEO](category/analytics-seo.txt) · [Index](../llms.txt)

## Facts

- GitHub: https://github.com/panphp/pan
- HTML: https://awesomeopensource.dev/project/panphp-pan
- License: MIT
- Language: PHP
- stars: 1274
- Topics: analytics, library, pan, php
- Activity score: 2.0/5 (Slowing down)
- Last commit (any branch): 2026-04-12

## Description

A lightweight, privacy-focused product analytics library for PHP and Laravel that tracks impressions, hovers and clicks on elements marked with a data-pan attribute. It collects no IP addresses, user agents or identifying data, and stores only analytic names and counters, batching client events to keep requests low. It works with Blade, Inertia, Livewire and Filament, visualizes results through a pan Artisan command, and provides flush, delete and whitelist APIs to limit which analytics are recorded.

## Maintenance activity

- Recency: 19% (weight 53%) — last commit: 215 days ago
- Commit volume: 27% (weight 33%)
- Bug fixes: 60% (weight 13%)
- Commits: 0 / 90d, 26 / 365d

## Demo video

https://www.youtube.com/watch?v=hJJNi-Ri_3E

## Screenshots

- [Screenshot of the Pan terminal command showing the analytics report with impressions, hovers and clicks per element](https://awesomeopensource.dev/uploads/501/da0fc7dc66e28e81.png)

## Similar projects

- [PostHog/posthog](posthog-posthog.md): PostHog provides open-source product analytics, session recording, feature flagging and a/b testing that you can self-host. · Activity score 5.0/5 (Thriving)
- [umami-software/umami](umami-software-umami.md): Umami is a simple, fast, privacy-focused alternative to Google Analytics. · Activity score 5.0/5 (Thriving)
- [matomo-org/matomo](matomo-org-matomo.md): Liberating Web Analytics. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. · Activity score 4.9/5 (Thriving)
- [rybbit-io/rybbit](rybbit-io-rybbit.md): Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive. · Activity score 4.9/5 (Thriving)
- [openreplay/openreplay](openreplay-openreplay.md): tv: OpenReplay is developer-friendly, open-source session replay. · Activity score 4.9/5 (Thriving)
- [harlan-zw/unlighthouse](harlan-zw-unlighthouse.md): Scan an entire site with Google Lighthouse from one command · Activity score 4.7/5 (Thriving)
