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.
To host the script on your company website instead of accessing it from our CDN, you will need to:
The cobrowse script package can be obtained at: https://www.glancecdn.net/cobrowse/packages/GlanceCobrowse_x.y.z.zip. Contact Glance to determine the version x.y.z of Cobrowse script that your company should use.
Unzip the package onto your web server.
If you have customized your Cobrowse button using the button customization tool, download your custom skin CSS files into a customstyles directory of the unzipped package. Your custom skin files can be found at the following URLs (specify your unique group id in place of [groupid]):
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
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.