Glance recommends referencing the Cobrowse script from the Glance CDN at glancecdn.net. When you use the Glance CDN:
Glance can easily provide you with updates and enhancements to the Cobrowse product.
Changes made using the button customization tool will be automatically applied without involving your website development team.
You can, however, host the scripts on your own server if you prefer. Glance will provide upgraded scripts approximately once per quarter, and will support the current version and at least one version prior.
NOTE: Excel Cobrowsing is not supported for customers who self-host the Cobrowse script.
Glance provides a tool to help generate a single customized self-hosting package, which includes:
- Your group’s staging and production custom skin CSS file with your color and branding customizations.
- Your group’s staging and production custom visitor text JSON files with customized widget text.
NOTE: Glance must turn on self-hosting in order for this package to be available in Manage Your Account.
To host the script on your company website instead of accessing it from our CDN, you will need to:
Download the package by going to Manage Your Account> Settings tab > Cobrowse Settings section> Manage your cobrowse settings. Two links are available for staging and production.
Unzip the package onto your web server.
NOTE: When the Cobrowse script is self-hosted, the script tag src attribute should reference the GlanceCobrowseLoader script as it is hosted on your company website.
<script id="glance-cobrowse" src="https://www.yourcompany.com/glance/js/GlanceCobrowseLoader_X.X.XM.js" data-groupid="1" data-site="staging" charset="UTF-8"> </script>
NOTE: None of the other scripts, images, or style sheets in the package should be referenced in your website.
Upgrade a Self-hosted Script
To generate and download the self-hosting package:
Once a new release is available, update your website to point to the new version. In other words, in the script tag above, change the version number to match the version number you are upgrading to.
Use a configuration setting on your website to control the version number, for example: src=”https://www.yourcompany.com/glance/GlanceCobrowseLoader_<%=GlanceCobrowseVersion%>M.js“
Copy the GlanceCobrowseLoader_x.y.zM.js script to a generic name “GlanceCobrowseLoader.js” and reference that name in the script src attribute. You will need to make sure that your server applies appropriate cache headers so that visitors will be getting the latest version after you upgrade.
Only cobrowse versions 4.15 and earlier support IE11 visitors, so you will need to detect the browser of the visitor and serve them the appropriate cobrowse script version. Below is one possible way to implement this logic. In the example, visitors on IE11 are served cobrowse version 4.15 in staging and 4.9 in production. Visitors on other browsers receive version 4.17 in staging and 4.10.1 in production.
If you choose to follow this example, you will need to modify it as appropriate for your environment (e.g., replace the group ID as well as the src URLs, include or omit the Presence attributes, define the environment as staging or production, etc.).
Additional details about our Internet Explorer 11 policy are here.