helloimdeadcat/magento2-analytics-charts
Composer 安装命令:
composer require helloimdeadcat/magento2-analytics-charts
包简介
Admin analytics charts for Magento 2 — orders, visitors, cart events and conversions
README 文档
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-11