helloimdeadcat / magento2-analytics-charts
Admin analytics charts for Magento 2 — orders, visitors, cart events and conversions
Package info
github.com/helloimdeadcat/magento2-analytics-charts
Type:magento2-module
pkg:composer/helloimdeadcat/magento2-analytics-charts
1.0.0
2026-07-11 15:42 UTC
Requires
- php: >=8.1
- magento/framework: ^103.0
- magento/module-backend: ^102.0
- magento/module-catalog: ^104.0
- magento/module-checkout: ^100.0
- magento/module-customer: ^103.0
- magento/module-email: ^101.0
- magento/module-quote: ^101.0
- magento/module-sales: ^103.0
- magento/module-store: ^101.0
Suggests
- stagem/module-statistic: Optional alternative add-to-cart data source
README
Admin analytics platform for Magento 2: orders, AOV, conversion funnel, top products, RFM segments, cohort retention, built-in event tracking, CSV export, REST API, and dashboard widget.
Author: helloimdeadcat
Features
Charts
- Orders, AOV, Add to Cart, Conversions
- Conversion funnel (Visitors → Views → Cart → Checkout → Purchase)
- Top products by revenue
- RFM customer segments (doughnut)
- Cohort retention table
Analytics engine
- Unified event tracking (
product_view,add_to_cart,remove_from_cart,begin_checkout,purchase) - Daily aggregation cron (pre-computed metrics)
- Period comparison vs previous range
- Store view filter
- Chart data caching
Admin UX
- Date presets: Today, 7d, 30d, 90d, MTD, YTD
- CSV export (UI + CLI)
- Drill-down on chart click
- Dashboard widget on admin home
- Line, bar, doughnut, funnel, table chart types
Automation
- Weekly email reports
- Drop alerts (orders / AOV threshold)
- REST API:
GET /V1/helloimdeadcat/analytics?from=YYYY-MM-DD&to=YYYY-MM-DD
Extensibility
DataProviderInterface— add custom charts viadi.xml- Events:
helloimdeadcat_analytics_collect_before,helloimdeadcat_analytics_collect_after
Installation
Copy the module to:
app/code/Helloimdeadcat/AnalyticsCharts/
Then run:
bin/magento module:enable Helloimdeadcat_AnalyticsCharts bin/magento setup:upgrade bin/magento cache:flush
Or install via Composer:
composer require helloimdeadcat/magento2-analytics-charts:^1.0 bin/magento module:enable Helloimdeadcat_AnalyticsCharts bin/magento setup:upgrade bin/magento cache:flush
CLI
bin/magento helloimdeadcat:analytics:export --from=2026-01-01 --to=2026-01-31 --output=/tmp/analytics.csv
REST API
GET /rest/V1/helloimdeadcat/analytics?from=2026-01-01&to=2026-01-31&storeId=1
Requires ACL: Helloimdeadcat_AnalyticsCharts::api
Configuration
Stores → Configuration → helloimdeadcat → Analytics Charts
- Enable/disable each chart and event type
- Period comparison, alerts, email reports
- Built-in tracking or Stagem Statistic data source
Cron jobs
| Job | Schedule | Purpose |
|---|---|---|
helloimdeadcat_analytics_aggregate_daily |
02:15 daily | Daily aggregates |
helloimdeadcat_analytics_cleanup_events |
03:30 daily | Remove events older than retention period |
helloimdeadcat_analytics_check_alerts |
Every 6 hours | Threshold alerts |
helloimdeadcat_analytics_email_report |
Monday 08:00 | Weekly report |
License
MIT