Network latency

Gumanalytics measures a lightweight HTTP response time once per session so you can understand the connection latency experienced by website visitors.

What the measurement means

Network latency is the elapsed time for a small HTTP request from the visitor's browser to reach the Gumanalytics edge and receive response headers. Lower values generally indicate a more responsive connection to the collection edge.

How latency is collected

  1. After the tracked page finishes loading, the analytics script sends three sequential cache-free requests to the lightweight /api/ping endpoint.
  2. The first request is treated as a warm-up because it may include connection setup. Gumanalytics uses the midpoint of the two remaining measurements.
  3. The resulting millisecond value is attached to the active analytics session and is not measured again for that session.

Each ping returns an empty 204 response with no-store headers. A request is abandoned after three seconds, failed probes are not reported, and the collector rejects malformed values and caps accepted latency at 10,000 ms.

Read the Sessions report

ValueMeaning
MedianThe middle measured session latency. Use this as the typical experience for the selected period.
p95The value that 95 percent of measured sessions are at or below. Use it to investigate the slowest connection experiences.
SessionsThe number of sessions with a successful latency measurement.
DistributionMeasured sessions grouped into under 50 ms, 50–100 ms, 100–200 ms, and 200 ms or higher.

Open an individual session to see its measured latency alongside city, country, device, and operating-system context. Compare trends and segments instead of treating one measurement as a permanent property of the visitor's connection.

Direct and proxied installations

Direct script installations derive the ping URL from the analytics collection endpoint. The generated Next.js component sets data-latency-endpoint to the Gumanalytics ping endpoint explicitly so latency is measured directly to the analytics edge rather than through the website's collection proxy.

data-latency-endpoint="https://gumanalytics.com/api/ping"

Data and privacy

The ping response contains no page or visitor payload. Gumanalytics stores the resulting integer millisecond value with the session and uses the same project-scoped session identity and retention practices as the rest of the session report.

Related documentation