How Analytics Connects to DDLS #
DMSI Analytics integrates with DDLS Core through WordPress action hooks. Understanding this helps you troubleshoot issues and know what data to expect.
The Integration Model #
DMSI Analytics is a passive observer. It never modifies DDLS Core data. It only listens.
When DDLS Core performs an action (a license is activated, a download is logged), it fires a WordPress action hook. DMSI Analytics has handlers registered for 27 of these hooks. Each handler queues an event record.
The 27 Tracked Hooks #
| Category | Hooks |
|---|---|
| Licenses | Created, activated, renewed, status changed, deleted |
| Activations | Created, deactivated, checked in |
| Downloads | Download logged |
| Customers | Created, updated, deleted, logged in, anonymized |
| Products | Created, updated |
| Files | Created, updated, deleted |
| Subscriptions* | Created, renewed, cancelled, payment failed, status changed |
| Versions* | Created, updated |
*Subscriptions hooks require DDLS Subscriptions Pro. Version hooks require DDLS Update Server.
Event Batching #
For performance, events are not written to the database one at a time. Instead, they are collected in memory throughout the page request and written in a single bulk INSERT when WordPress finishes processing (the shutdown hook).
Implication: If a fatal PHP error occurs before WordPress finishes, events from that request are lost. Under normal operation this does not matter.
Admin Integration #
DMSI Analytics adds its menu pages inside the existing DDLS admin shell. You will find all analytics pages under the DDLS admin menu, grouped together.
No DDLS Core Modifications Required #
You do not need to modify DDLS Core to use analytics. Installing and activating the extension is sufficient. The integration works through WordPress’s standard hook system.
