This product is not supported for your selected Datadog site. ().

Overview

Server-side events are custom events sent through the Product Analytics API from your server. Unlike client-side events captured by the RUM SDK, such as pageviews or button clicks, server-side events track actions that occur in your backend, such as a completed checkout or processed payment.

Use server-side events to:

  • Capture events at the source of truth on the server, independent of client-side behavior
  • Track backend actions with no client-side equivalent, such as a payment confirmation or subscription renewal
  • Supplement client-side data with server-side context
Datadog bills server-side events separately. See the pricing page for details, and contact your Customer Success Manager with additional questions.

Prerequisites

Before sending server-side events, set up the Datadog SDK for your application and enable Product Analytics.

Send server-side events

Use the Product Analytics API to send events from your server. To associate a server-side event with a client session, include the session_id from the client’s active RUM session. Including the session ID links server-side events to client-side data for a complete view of the user journey.

For the full API reference, including authentication, required fields, and request parameters, see Send server-side events.

Analyze server-side events

After you send server-side events, they are available in any Product Analytics chart. In the event picker, select Server Events to scope your analysis to server-side data.

Further reading