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.

Note

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:

  1. As an administrator, navigate to Settings > Content Masking > Elements
  2. Click the New button. Portal Portal
  3. Input the element that needs to be masked in the Selector Identifier field and click Create.
  4. After you test your changes in staging, click Publish Selectors. Portal Portal
Note

In the above screenshot, all elements with an id of “confidential” and/or a class of “sensitive-data” will be masked.

Warning

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".

Verifying Verifying

Note

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.

  1. As an administrator, navigate to Settings > Content Masking > Pages
  2. Click the New button.
  3. Input the URL that needs to be masked in the URL field and click Create. Portal Portal
  4. 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.

  1. Click the Assign tab. Portal Portal
  2. Click the checkbox underneath each role that needs to view the content.
  3. Click Update.