Skip to content

Event Stats

Aggregate event analytics: totals by event type, daily trend, top domains, environment breakdowns, uninstall reasons with feedback, and activation/update-adoption rates.

GET /v1/events/stats

Query Parameters

ParameterTypeDescription
product_idstringScope to one product
fromstringWindow start (YYYY-MM-DD, UTC)
tostringWindow end (YYYY-MM-DD, UTC)
daysnumberRolling window in days (ignored when from/to are set)
reasonstringScope uninstall feedback + environment breakdowns to one uninstall reason, e.g. switching

Without any window parameters the default is this week (Monday → today, UTC).

Response

json
{
  "data": {
    "totals": {
      "license.validated": 1320,
      "license.activated": 45,
      "update.checked": 410
    },
    "trend": [
      {
        "date": "2026-06-12",
        "validated": 180,
        "activated": 6,
        "deactivated": 1,
        "updateChecked": 60,
        "installed": 4,
        "uninstalled": 1
      }
    ],
    "topDomains": [
      { "domain": "customer-site.com", "count": 92 }
    ],
    "installTopDomains": [
      { "domain": "new-site.com", "count": 3 }
    ],
    "environment": {
      "php": [{ "bucket": "8.2", "events": 14 }],
      "wp": [{ "bucket": "6.7", "events": 11 }]
    },
    "uninstall": {
      "byReason": [{ "bucket": "switching", "events": 2 }],
      "recentFeedback": [
        {
          "reason": "switching",
          "feedback": "Found a cheaper alternative",
          "domain": "old-site.com",
          "createdAt": "2026-06-11T14:00:00Z"
        }
      ],
      "reason": ""
    },
    "rates": {
      "activationSuccess": 97.8,
      "updateAdoption": 64.2
    },
    "days": 7
  }
}
FieldDescription
environmentInstall/uninstall environment breakdowns (PHP, WP, OS, server, etc.) bucketed by version.
ratesPercentages; null when there isn't enough data in the window.
daysThe window length actually applied.

Example

bash
curl -X GET "https://api.packedge.dev/v1/events/stats?product_id=prd_xxx&days=30" \
  -H "Authorization: Bearer pk_your_api_key"