New in CUX: Mobile Analytics. Analyze real user behavior inside your app. Learn More

Masking Selected Elements

Masking Selected Elements

Browse topics

Another option of hiding an element from CUX is modifying your page HTML code. You can add the class cux-exclude to any selectedHTML element. When the CUX script finds an element containing the excluded class, it replaces it with an empty DIV element. The styles for the hidden elements are retained. Thanks to this, the page rendered in CUX player or heatmaps won’t be distorted but the private data won’t be recorded by CUX.

It's essential to approach masking with precision, focusing solely on elements with sensitive data. Over-masking can lead to less informative analytics, such as incomplete heatmaps and recordings. We advise selectively hiding only those elements that contain private information, avoiding the unnecessary obscuration of entire website sections.