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..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 @@ -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].