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
- Orders, AOV, Add to Cart, Conversions
- Conversion funnel (Visitors → Views → Cart → Checkout → Purchase)
- Top products by revenue
- RFM customer segments (doughnut)
- Cohort retention table
- 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
- 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
- Weekly email reports
- Drop alerts (orders / AOV threshold)
- REST API:
GET /V1/helloimdeadcat/analytics?from=YYYY-MM-DD&to=YYYY-MM-DD
DataProviderInterface— add custom charts viadi.xml- Events:
helloimdeadcat_analytics_collect_before,helloimdeadcat_analytics_collect_after
Copy the module to:
app/code/Helloimdeadcat/AnalyticsCharts/
Then run:
bin/magento module:enable Helloimdeadcat_AnalyticsCharts
bin/magento setup:upgrade
bin/magento cache:flushOr install via Composer:
composer require helloimdeadcat/magento2-analytics-charts:^1.0
bin/magento module:enable Helloimdeadcat_AnalyticsCharts
bin/magento setup:upgrade
bin/magento cache:flushbin/magento helloimdeadcat:analytics:export --from=2026-01-01 --to=2026-01-31 --output=/tmp/analytics.csvGET /rest/V1/helloimdeadcat/analytics?from=2026-01-01&to=2026-01-31&storeId=1
Requires ACL: Helloimdeadcat_AnalyticsCharts::api
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
| 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 |
MIT