-
Notifications
You must be signed in to change notification settings - Fork 162
Description
Summary
Some interactive UI elements (such as image gallery sliders, carousels, or custom controls) are expected to be clicked repeatedly by users. These legitimate multi-click interactions can currently be flagged as "Rage Clicks" in Datadog RUM's Frustration Signals, leading to false positives.
Feature Request
As a developer, I would like the ability to tag specific HTML elements so that repeated clicks on these elements are NOT counted towards Rage Clicks. This would allow for more accurate frustration tracking and fewer false positives.
This request is inspired by the privacy masking pattern in Datadog (e.g. data-dd-privacy
, class="dd-privacy-mask"
, etc.)
Proposed Implementation
- HTML attribute:
data-dd-rage-click-ignore="true"
- CSS class:
dd-rage-click-ignore
When either of these is present on a clicked element (or any ancestor), the SDK should exclude those clicks from Rage Click detection.
Example
<div class="gallery-slider" data-dd-rage-click-ignore="true">
<button class="gallery-next">Next</button>
<button class="gallery-prev">Previous</button>
</div>
or
<div class="gallery-slider dd-rage-click-ignore">
<button class="gallery-next">Next</button>
<button class="gallery-prev">Previous</button>
</div>