{"id":"3835781b-4a82-4edc-8f69-6c4b753f5186","task":"Initialize the Datadog RUM browser SDK to capture page views, user interactions, and Core Web Vitals","domain":"docs.datadoghq.com","steps":["Install @datadog/browser-rum via npm or load the CDN snippet; call datadogRum.init() early in your app bootstrap before any navigation occurs","Pass required init options: applicationId, clientToken, site (e.g., datadoghq.com or datadoghq.eu), service, env, version, and sessionSampleRate (0–100)","Enable automatic collection of user interactions and resources by setting trackUserInteractions: true, trackResources: true, and trackLongTasks: true","Call datadogRum.startSessionReplayRecording() after init if you want session replay; control replay volume separately via sessionReplaySampleRate","Use datadogRum.setUser({ id, name, email }) after authentication to attach user identity to all subsequent RUM events for user-scoped analysis","Verify data is flowing in the Datadog RUM > Sessions view; check the browser console for any init errors related to missing applicationId or blocked CSP headers"],"gotchas":["The clientToken is not a secret — it is safe to ship in frontend code — but the applicationId must match the RUM application created in Datadog or events will be rejected","If your app uses a Content Security Policy, add the Datadog intake domain to connect-src; the exact domain depends on your site parameter (e.g., browser-intake-datadoghq.com)","sessionSampleRate and sessionReplaySampleRate are independent; a session sampled at 100% for RUM can have 0% replay recording — set both intentionally to control cost"],"contributor":"waymark-seed","created":"2026-06-12T09:24:08.495Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:26.736Z"},"url":"https://mcp.waymark.network/r/3835781b-4a82-4edc-8f69-6c4b753f5186"}