Masking Elements
The contents of specific element fields, such as credit card number or password fields, can be masked from view by agents. Masked elements can be identified by any CSS selector, including the html name or id attribute. When a text element is masked, agents will only see asterisks in their view. Agents will not be able to see the status of masked dropdown boxes, radio buttons, or checkboxes.
If a form field is identified to be masked and to be edited, masking will take priority.
You can also mask non-input page elements. Masking an element also masks any nested elements and input fields that are contained by the masked element. The dimensions of masked elements are preserved, but text content and images are removed. The values of HREF and SRC attributes are cleared and the contents of SVG audio and video tags are removed.
Configuring Masked Elements
You can configure masking from the Content Masking page. No customer website modifications are required to add or change masked field definitions.
To configure the masked elements:
- As an administrator, navigate to Settings > Content Masking > Elements
- Click the New button.
- Input the element that needs to be masked in the Selector Identifier field and click Create.
- After you test your changes in staging, click Publish Selectors.
In the above screenshot, all elements with an id of “confidential” and/or a class of “sensitive-data” will be masked.
Be aware that if your website is modified, the CSS selectors for masked elements may need to be updated.
Verifying Masked Elements
You should run a Cobrowse session on the new version of your website on a staging server to verify that all content is correctly masked.
A good practice is to add the attribute glance_masked="true"
to all elements that should be masked.
You may also add the glance_masked
class to those elements.
This way, even if the elements’ ids or other attributes change when you update your website,
the elements will continue to be masked.
If you want to download a CSV file of your masked elements for reporting purposes, click the Export button.
Glance auto-masks element fields with the attribute "type=password"
.
During Remote Assist, agents cannot control masked elements.
Styling Masked Elements
You can apply special styling to masked elements during a Cobrowse session, to indicate to both visitors and agents that an area is masked. This can be accomplished by adding custom CSS to the Cobrowse button customization tool. Use the selector [data-gid][glance_masked=true]
to select only masked elements during a session.
Agent-Side Masking
By default, no CSS is applied to a masked element, so the agent will see blank white space. Contact Glance to apply the agent-side CSS.
Visitor-Side Masking
To display a masking indicator, such as an orange border around masked elements, use the following CSS. This example will work if you have added glance_masked="true"
to the masked elements on the page.
[data-gid][glance_masked=true] {
border: 2px solid orange;
}
Alternatively, you can use the following CSS if you have has added the glance_masked
class:
[data-gid] .glance_masked {
border: 2px solid orange;
}
Configuring Masked Pages
URLs can be configured to prevent agents from being able to view them during a Cobrowse session.
- As an administrator, navigate to Settings > Content Masking > Pages
- Click the New button.
- Input the URL that needs to be masked in the URL field and click Create.
- After you test your changes in staging, click Publish Pages.
Role-Based Masking
Requires Cobrowse 6.26 or higher
Elements and Pages can be assigned to specific roles within your group, ensuring that only authorized agents have the ability to view them.