★ Founding developer program: Pro free for 90 days for the first 50 developers →
DocsYour first data

Your first data

What happens between starting your server and seeing it in the dashboard, how to make it fast on a test server, and what to check when nothing arrives.

Updated · by Skilled

From server to dashboard

  1. The server starts. The SDK starts collecting in memory right away.
  2. The first batch is sent 15 to 45 seconds later (a small random delay, so servers that restart together don't all connect at once) and written right away, so a new server shows up within seconds. Mods in players' games are the exception: their first batch goes out after 60 to 90 seconds, then every 30 minutes (details).
  3. Then servers send data every minute, as a small batch over one live connection the SDK keeps open. A new error goes out within seconds, without waiting for the minute, and a last batch is sent when your plugin is disabled.
  4. Batches are merged before they're written, every few minutes, so storing them stays cheap. New errors are written at once, so their notifications never wait.
  5. While you have the plugin open in the dashboard, everything pending is written the moment you open it, then every 30 seconds, and its pages refresh themselves. Close the tab and writes go back to every 5 minutes. Servers send every minute either way.

Live connection

The SDK talks to wss://pluginanalytics.dev/api/v1/live over a WebSocket. The service decides on that connection how often the server sends and what it collects for your plan, so new features rarely need a new SDK. If the connection can't be opened (a firewall, a proxy), the SDK sends over HTTPS every hour instead and keeps trying to connect, backing off up to 30 minutes.

JVM flagWhat it does
-Dpluginanalytics.httpOnly=trueNever opens the live connection: hourly HTTPS batches only.
-Dpluginanalytics.interval=<minutes>The pace of the HTTPS fallback, from 5 to 60 (default 60).
-Dpluginanalytics.firstDelay=<seconds>When the first batch is sent, instead of a random 15 to 45 seconds.

Data from SDK 1.5 and older is no longer accepted: update the dependency to 1.6 or later and release your plugin.

See exactly what is sent: log-sent-data

The SDK creates plugins/PluginAnalytics/config.yml (Bukkit and proxies) or config/pluginanalytics.yml (Fabric and NeoForge) on first start. Set log-sent-data: true and restart, and every batch is printed in the console:

[ArenaPlus] PluginAnalytics sent: {"v":1,"key":"pa_…","server":"6f1c…","players":3,"span":60,
  "env":{"platform":"paper","mc":"1.21.8","software":"Paper","java":"21","os":"Linux","cores":8,
  "plugin":"1.4.0","sdk":"1.8.0","online_mode":true,"players_max":100},
  "props":{"config.auto-queue":"false","config.storage":"sqlite","dep.vault":"installed"},
  "events":[{"n":"command:arena.join","k":"p","c":4,"u":2,"s":1},{"n":"game_started","k":"p","c":2,"u":2,"s":1,"p":{"mode":"solo"}}],
  "firsts":[{"n":"$join","a":"p:3fa1…","t":1760000000}], …}

Messages from the service are printed as PluginAnalytics received: …, and failures too: PluginAnalytics got HTTP 404, PluginAnalytics live connection failed: … or PluginAnalytics could not send data: ….

No data? Check these, in order

  1. NoClassDefFoundError: com/gamepathics/pluginanalytics/… You're running the plain jar, which doesn't contain the SDK. Use the shaded one (see Installation).
  2. A warning at startup. Search the console for PluginAnalytics is disabled:
    • relocate com.gamepathics.pluginanalytics into your plugin's package: the SDK was shaded without the relocate line. See relocation.
    • invalid project key: the key is empty or doesn't start with pa_.
  3. The key belongs to another plugin. A key that starts with pa_ but doesn't exist is refused by the server (HTTP 404 with log-sent-data) and the batch is dropped. Copy the key again from the dashboard's setup screen or Settings → Install.
  4. Analytics is turned off on that server. Check enabled in plugins/PluginAnalytics/config.yml (config/pluginanalytics.yml on Fabric and NeoForge); analytics.isEnabled() returns false in that case.
  5. You didn't wait long enough. The first batch comes 15 to 45 seconds after startup and shows up within seconds; after that, servers send data every minute.
  6. An old SDK. Data from SDK 1.5 and older is refused (HTTP 410, "PluginAnalytics SDK 1.6.0 or later is required"). Update the dependency and rebuild your plugin.
  7. The server can't reach us. Batches go over a WebSocket to wss://pluginanalytics.dev/api/v1/live on port 443, with an HTTPS POST to pluginanalytics.dev as the fallback (5-second connect and 10-second read timeouts). A firewall, an outbound proxy or a hosting provider that blocks outgoing connections stops them; log-sent-data then shows could not send data.
  8. A leftover endpoint. If you ever started the server with -Dpluginanalytics.endpoint=…, data goes there instead.

The SDK never throws and never blocks, whatever goes wrong: your plugin keeps working, the data simply doesn't arrive.

Sections that stay empty

Some pages only fill when there's something to show: Events needs a command or a track call, Funnels needs players joining, Errors needs an exception, Listing needs your listings connected. Until then they explain what they show and the code they need.