diff --git a/src/content/docs/browser/browser-monitoring/browser-pro-features/session-replay/configuration/customize-privacy-settings.mdx b/src/content/docs/browser/browser-monitoring/browser-pro-features/session-replay/configuration/customize-privacy-settings.mdx index b74ecabada3..416c4c617d2 100644 --- a/src/content/docs/browser/browser-monitoring/browser-pro-features/session-replay/configuration/customize-privacy-settings.mdx +++ b/src/content/docs/browser/browser-monitoring/browser-pro-features/session-replay/configuration/customize-privacy-settings.mdx @@ -62,14 +62,14 @@ To display all static text (such as labels, buttons, and headings) and only mask 6. In the User input masking section, clear all checkboxes, including Mask all user input and the specific input type boxes. -7. Add the `nr-mask` class or `data-nr-mask` attribute to specific sensitive inputs in your HTML code that you want to keep masked. For example, if you want to mask credit card numbers but show all other text, add `nr-mask` to the credit card input field: +7. Add the `nr-ignore` class to specific sensitive inputs in your HTML code that you want to keep masked. For example, if you want to mask credit card numbers but show all other text, add `nr-ignore` to the credit card input field: ```html - + ``` 8. Redeploy your app to apply the changes @@ -131,26 +131,35 @@ For example: ## Unmask static text [#unmask-text] -You can use unmask selectors to display specific static text elements without asterisks (\*). This is useful if you want to keep global masking enabled but need certain elements to remain visible. +By default, all static text is masked when you use recommended settings. If you want to explicitly unmask specific static text elements, you can add the `nr-unmask` class or `data-nr-unmask` attribute to that specific element. This is useful when you want to keep global masking enabled but need certain elements to remain visible. -To unmask specific text elements, follow these options: + + You must use browser agent version 1.256.0 or higher to use the `nr-unmask` and `data-nr-unmask` selectors. + + +To unmask specific text elements, use one of the following options: * In the New Relic platform: On the **Application settings** page, add CSS selectors to the Mask selectors field. To unmask all static text, clear this field. * In your code: Add the `nr-unmask` CSS class or `data-nr-unmask` attribute to your HTML elements. - For example, to display a product name while other text remains masked: + For example, to display a product name while other text remains masked using: + + * An inline CSS class: - ```html -

Product Name: Premium Widget

- ``` + ```html +

Product Name: Premium Widget

+ ``` + + * An inline data attribute: + + ```html +

Product Name: Premium Widget

+ ``` - - You must use browser agent version 1.256.0 or higher to use the `nr-unmask` and `data-nr-unmask` selectors. - ## Block site content [#block-content] - You can block entire sections of content on your site, which means the section will appear as an empty placeholder in session replay. For example, if you have an image on your About Us webpage and don’t need it captured, you could block the class containing the image. + You can block entire sections of content on your site, which means the section will appear as an empty placeholder in session replay. For example, if you have an image on your About Us webpage and don't need it captured, you could block the class containing the image. To block specific classes or attributes, you have a few options: