From 8a55972aaa43a56d56e55b91404fa6ec1e9b981b Mon Sep 17 00:00:00 2001 From: Rosa Trieu Date: Fri, 10 Apr 2026 10:25:23 -0700 Subject: [PATCH 1/2] [DOCS-11179] Rearrange track user interactions --- .../browser/tracking_user_actions.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/content/en/real_user_monitoring/application_monitoring/browser/tracking_user_actions.md b/content/en/real_user_monitoring/application_monitoring/browser/tracking_user_actions.md index 1b864cb306e..579dc0840a8 100644 --- a/content/en/real_user_monitoring/application_monitoring/browser/tracking_user_actions.md +++ b/content/en/real_user_monitoring/application_monitoring/browser/tracking_user_actions.md @@ -32,9 +32,22 @@ You can accomplish the following objectives: While there is no explicit cap on the total number of actions that can be collected by the RUM Browser SDK during a session, there are technical limitations on individual event sizes and the payload sent. For further details about limitations on actions, see [RUM Browser Troubleshooting documentation][1]. +## Track user interactions + +To enable automatic click tracking, set `trackUserInteractions: true` in your SDK initialization: + +```javascript +window.DD_RUM.init({ + ... + trackUserInteractions: true, +}); +``` + +The RUM Browser SDK automatically tracks clicks to generate click actions. A one-click action generally represents one user click, except when the same element is clicked multiple times in a row, which is considered a single action (see [Frustration Signals "rage clicks"][4]). + ## Manage information being collected -The `trackUserInteractions` initialization parameter enables the collection of user clicks in your application, which means sensitive and private data contained in your pages may be included to identify elements that a user interacted with. +When user interaction tracking is enabled, sensitive and private data contained in your pages may be included to identify elements that a user interacted with. To control which information is sent to Datadog, you can [mask action names with privacy options][2], [manually set an action name](#declare-a-name-for-click-actions), or [implement a global scrubbing rule in the Datadog Browser SDK for RUM][3]. @@ -54,10 +67,6 @@ When enabled, all action names are replaced with `Masked Element`. Action names
If your application uses a JavaScript bundler, the Action Name Deobfuscation build plugin automatically restores readable action names in minified builds.
-## Track user interactions - -The RUM Browser SDK automatically tracks clicks to generate click actions. A one-click action generally represents one user click, except when the same element is clicked multiple times in a row, which is considered a single action (see [Frustration Signals "rage clicks"][4]). - ## Action timing telemetry For information about the default attributes for all RUM event types, see [RUM Browser Data Collected][5]. From 83e970025d9d6ed9e076d8462dad6fc1a6b01f93 Mon Sep 17 00:00:00 2001 From: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> Date: Fri, 10 Apr 2026 11:38:42 -0700 Subject: [PATCH 2/2] Update content/en/real_user_monitoring/application_monitoring/browser/tracking_user_actions.md Co-authored-by: Alicia Thuerk --- .../application_monitoring/browser/tracking_user_actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/real_user_monitoring/application_monitoring/browser/tracking_user_actions.md b/content/en/real_user_monitoring/application_monitoring/browser/tracking_user_actions.md index 579dc0840a8..512915e500f 100644 --- a/content/en/real_user_monitoring/application_monitoring/browser/tracking_user_actions.md +++ b/content/en/real_user_monitoring/application_monitoring/browser/tracking_user_actions.md @@ -47,7 +47,7 @@ The RUM Browser SDK automatically tracks clicks to generate click actions. A one ## Manage information being collected -When user interaction tracking is enabled, sensitive and private data contained in your pages may be included to identify elements that a user interacted with. +When user interaction tracking is enabled, sensitive, and private data contained in your pages may be included to identify elements that a user interacted with. To control which information is sent to Datadog, you can [mask action names with privacy options][2], [manually set an action name](#declare-a-name-for-click-actions), or [implement a global scrubbing rule in the Datadog Browser SDK for RUM][3].