Background Jobs and Data Collection
Background Jobs and Data Collection
How Analytics Data Is Collected
Last Updated: March 22, 2026How Analytics Data Is Collected DMSI Analytics collects data through two mechanisms: real-time event capture and daily pre-calculation. Mechanism 1: Real-Time Event Capture DMSI Analytics listens to 27 DDLS Core action hooks. When DDLS Core fires an action (a license is created, a download is logged), DMSI Analytics’ Event_Listener handles it immediately. What happens: 1....
Tracked Events Reference
Last Updated: March 22, 2026Tracked Events Reference This page lists every event that DMSI Analytics captures and what data is recorded with each. Event Categories Category Events license license_created, license_activated, license_renewed, license_status_changed, license_deleted activation activation_created, activation_deactivated, activation_checked_in download download_logged customer customer_created, customer_updated, customer_deleted, customer_logged_in, customer_anonymized product product_created, product_updated file file_created, file_updated, file_deleted subscription subscription_created, subscription_renewed, subscription_cancelled, subscription_payment_failed, subscription_status_changed version...
Daily Metric Calculation Cron
Last Updated: March 22, 2026Daily Metric Calculation Cron The daily metric calculation is the most important background job in DMSI Analytics. It transforms raw events into the pre-calculated metrics that power all dashboard charts. Schedule Property Value WP-Cron hook dmsi_analytics_calculate_metrics Frequency Daily Time 2:00 AM (server timezone) What It Calculates The Metric_Calculator orchestrates calculations in this order: Revenue (MRR,...
Scheduled Report Delivery Cron
Last Updated: March 22, 2026Scheduled Report Delivery Cron The scheduled report cron checks for due reports every hour and delivers them by email. Schedule Property Value WP-Cron hook dmsi_analytics_send_scheduled Frequency Every hour Handler Scheduler::run() What It Does Each hour, the Scheduler class: Queries wp_dmsilm_analytics_scheduled for records where next_run <= NOW() and status = 'active' For each due report: generates...
Event Cleanup Cron
Last Updated: March 22, 2026Event Cleanup Cron The event cleanup cron enforces your data retention policy by archiving or deleting old event records. Schedule Property Value WP-Cron hook dmsi_analytics_cleanup_events Frequency Monthly Handler Event_Cleanup::run() What It Does Based on your configured retention policy (in Analytics > Settings > Data & Maintenance): Keep Forever: Cron runs but takes no action Archive...
Background Export Processing Cron
Last Updated: March 22, 2026Background Export Processing Cron For large data exports (especially Excel files with many rows), DMSI Analytics can offload export generation to a background WP-Cron job. Schedule Property Value WP-Cron hook dmsi_analytics_process_export Frequency On-demand (scheduled when a large export is triggered) Handler Export_Engine::run_background_export() How It Works When you click an Export button: If the export is...
GDPR and Data Privacy
Last Updated: March 22, 2026GDPR and Data Privacy DMSI Analytics stores event data that includes IP addresses and customer IDs, which are personal data under GDPR. The plugin includes built-in GDPR compliance features. Personal Data Stored Data Table GDPR Relevance IP address analytics_events Personal data in EU Customer ID analytics_events Links to personal records Event metadata analytics_events May contain...
