Datadog

Datadog

Datadog is an observability and monitoring platform for cloud infrastructure, applications, and logs. Browser SDK scripts instrument frontend JavaScript to capture errors, performance timings, and user sessions for Real User Monitoring. Used by engineering teams to diagnose production issues and monitor user experience metrics.

Overview

Datadog is an observability and monitoring platform used by engineering and operations teams to monitor cloud infrastructure, application performance, and logs. Its Browser SDK adds Real User Monitoring (RUM) and session replay capabilities to frontend applications, enabling teams to diagnose production issues with full user session context.

What This Script Does

The Datadog Browser SDK is loaded as a JavaScript snippet or npm module and instruments the frontend application to capture performance telemetry and error data.

Script Files and Domains

  • browser-sdk/datadog-rum.js or datadog-rum-slim.js — Loaded from www.datadoghq-browser-agent.com or bundled into the application. Typically ~50–100KB minified.
  • API endpoint: browser-intake.datadoghq.com (US) or browser-intake.datadoghq.eu (EU) — Receives all telemetry payloads via fetch or XMLHttpRequest.

Cookies and Storage

  • _dd_s — First-party session cookie set on the host website's domain. Contains a session ID, creation time, and expiry timestamp. Default expiry: 15 minutes of inactivity, maximum 4 hours. Used to group RUM events into a single user session.
  • _dd_l — Deprecated in newer SDK versions; legacy session linkage cookie.
  • No third-party cookies. All cookies are set as first-party on the host domain.

Data Collected Per Page Load

  • Page URL, referrer, and navigation timing (Time to First Byte, DOM Content Loaded, Load Event)
  • Resource loading waterfall: URLs, response codes, transfer sizes, and timing for all XHR/fetch calls, images, scripts, and stylesheets
  • Long task timings (tasks blocking the main thread >50ms)
  • Core Web Vitals: Largest Contentful Paint (LCP), First Input Delay (FID), Cumulative Layout Shift (CLS)

Data Collected Per Interaction

  • JavaScript errors: error message, stack trace, file, line/column number
  • User actions: clicks (element text, class, position), navigation events
  • XHR/Fetch calls: URL, method, status code, duration (response body is NOT captured)
  • Browser metadata: user agent, viewport dimensions, connection type
  • User ID (if configured via setUser() API — this is optional and set by the site operator)

Session Replay (if enabled) When Session Replay is activated, the SDK captures DOM mutations as snapshots using a MutationObserver. Input masking is applied by default to password fields and can be configured for other sensitive elements. Replay data is transmitted separately from RUM events to session-replay.browser-intake.datadoghq.com.

Consent & Compliance

Consent category: Essential

  • GDPR/ePrivacy: Datadog RUM collects technical telemetry (performance metrics, errors, resource loading) for operational purposes. This falls under legitimate interest for maintaining service quality and diagnosing production incidents. The _dd_s session cookie is a first-party cookie used for operational monitoring. Under ePrivacy, session cookies used for technical monitoring may qualify for the strictly necessary exemption, though DPA guidance varies. Session Replay requires separate consent as it captures detailed user interactions.
  • CCPA/CPRA: Datadog processes telemetry data as a service provider. No sale or sharing of personal information occurs. IP addresses are processed for routing but not retained for analytics in default configurations.
  • EU-US transfers: Datadog offers an EU region (datadoghq.eu) with data residency in Frankfurt, enabling GDPR-compliant processing without cross-border transfer concerns. Datadog participates in the EU-US Data Privacy Framework.

Should You Block This Without Consent?

No. Datadog RUM is operational monitoring infrastructure used by engineering teams to detect and diagnose production issues. It does not track users for marketing purposes. Blocking it would impair your team's ability to monitor site reliability. However, if Session Replay is enabled, that feature should be gated behind analytics consent due to its detailed interaction recording.

Is Datadog GDPR compliant?

Datadog typically loads analytics trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Datadog can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Datadog, not on Datadog itself.

Visit website

Consent Categories

Also Known As

Datadog RUMDatadog Browser SDKreal user monitoringDatadog session replayDatadog APMobservability

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (2)

browser-intake-datadoghq.comAnalytics

browser-intake-datadoghq.com is an analytics domain operated by Datadog, used to measure visits, sessions, and on-site behavior.

datadoghq-browser-agent.comAnalytics

datadoghq-browser-agent.com is an analytics domain operated by Datadog, used to measure visits, sessions, and on-site behavior.

Cookies Datadog Sets (1)

_dd_s

Datadog Real User Monitoring session cookie storing the session ID and sampling decisions. 15-minute expiration.

Frequently Asked Questions

Related Vendors

Jotform AI
Jotform AI
JotForm AI is an AI-assisted form builder that embeds interactive forms and conversational interfaces on websites. Scripts load embedded forms collecting user-submitted data including names, emails, and custom fields. Responses are transmitted to JotForm's servers. May set session cookies and track form completion and abandonment events.
Typeform
Typeform
Typeform is an interactive form and survey platform known for its conversational, one-question-at-a-time UX. Scripts embed responsive form widgets on websites and track completion and drop-off rates for each question. Response data is stored in Typeform and can be forwarded to connected integrations like HubSpot or Google Sheets.
Klarna
Klarna
Klarna is a buy-now-pay-later and consumer financing service embedded in e-commerce checkouts. Scripts load payment option widgets displaying installment plans and financing offers to shoppers. Browser signals, purchase context, and session data are collected for real-time credit assessments. Sets cookies to maintain session state across the checkout flow.
Okta
Okta
Okta is an enterprise identity and access management platform used for SSO, MFA, and user lifecycle management. Scripts and redirects handle authentication flows that validate user identity against Okta's identity provider before granting access to applications. Widely deployed in B2B SaaS and enterprise software products.
Akamai Client-Side Protection
Akamai Client-Side Protection
Akamai Client-Side Protection is a script security solution that monitors third-party JavaScript for supply chain attacks and data skimming. A lightweight agent script observes the behavior of all scripts running on the page, detecting unauthorized data access and exfiltration attempts. Behavioral telemetry is transmitted to Akamai for analysis and alerting.
Dynatrace
Dynatrace
Dynatrace is an AI-powered observability platform for application performance monitoring and infrastructure management. Browser agents inject into page loads to collect Real User Monitoring data including JavaScript errors, resource timings, and user action traces. Used by operations and engineering teams to detect and diagnose performance degradations.

Manage consent for Datadog

ConsentStack automatically detects and manages Datadog trackers so your site stays compliant with global privacy regulations.