Tracking: Siteimprove - ucsf-ckm/ucsf-library-ux-and-web-documentation GitHub Wiki

Main Library website

This tracking code will capture page views and analytics for the site. Basic Siteimprove (for accessibility, etc.( is tracked by simply asking Jill Wolters to add a site for us.

Dashboard > Appearance > Elements > Legacy Hooks > After Footer Content

<!-- start of Siteimprove analytics script from https://www.ucop.edu/electronic-accessibility/web-developers/tools-and-testing/siteimprove/analytics-javascript-code.html -->

<script type="text/javascript">
/*<![CDATA[*/
(function() {
var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true;
sz.src = '//siteimproveanalytics.com/js/siteanalyze_8343.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s);
})();
/*]]>*/
</script>

Zendesk Help Center

Saved in template file document_head.hbs

Admin > eye icon> customize > edit code

<!-- SiteImprove tracking script--> <script type="text/javascript"> /*<![CDATA[*/ (function() { var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true; sz.src = '//siteimproveanalytics.com/js/siteanalyze_8343.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s); })(); /*]]>*/ </script>

LibGuides

LibGuides > Admin > System Settings > Custom Analytics and add code snippet.

<!-- SiteImprove tracking script-->
<script type="text/javascript">
/*<![CDATA[*/
(function() {
var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true;
sz.src = '//siteimproveanalytics.com/js/siteanalyze_8343.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s);
})();
/*]]>*/
</script>
⚠️ **GitHub.com Fallback** ⚠️