Analytics & Reporting
HelpSite doesn't yet include any built-in analytics to tell you which articles are being viewed most often, etc. This is a feature we may add in the future. (If you would like to see this, please contact us with specific details about what you were hoping to see!)
However, there are some great 3rd party tools that you can integrate into HelpSite through our Custom HTML feature that can provide you with a lot of analytics/stats/reports about your articles, user activity, time on page, etc.
Here are some examples of services (some offer Free plans!) whose tracking code can easily be embedded into your HelpSite and provide you analytics:
- Google Analytics – Free and best for analytics about page views, referrer tracking, most popular content, etc.
- Fathom – Simpler and more privacy focused than Google Analytics
- FullStory – Best for tracking individual users and what their behavior on your site is. Has a free plan.
Google Analytics integration:
To use Google Analytics, sign up for an account, and follow their process to get a tracking code such as the following:
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YOUR_GA_NUMBER_GOES_HERE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-YOUR_GA_NUMBER_GOES_HERE');
</script>
This tracking snippet (with your unique identifier filled in) should be placed in Customizations > Main Layout in the code immediately before the </head>
tag.
FullStory integration:
To use FullStory, sign up for an account, and follow their process to get a tracking code such as the following:
<!-- FullStory -->
<script>
window['_fs_debug'] = false;
window['_fs_host'] = 'fullstory.com';
window['_fs_org'] = 'YOUR_FULLSTORY_NUMBER_GOES_HERE';
window['_fs_namespace'] = 'FS';
(function(m,n,e,t,l,o,g,y){
if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].');} return;}
g=m[e]=function(a,b){g.q?g.q.push([a,b]):g._api(a,b);};g.q=[];
o=n.createElement(t);o.async=1;o.src='https://'+_fs_host+'/s/fs.js';
y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);
g.identify=function(i,v){g(l,{uid:i});if(v)g(l,v)};g.setUserVars=function(v){g(l,v)};
y="rec";g.shutdown=function(i,v){g(y,!1)};g.restart=function(i,v){g(y,!0)};
g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};
g.clearUserCookie=function(){};
})(window,document,window['_fs_namespace'],'script','user');
</script>
This tracking snippet (with your unique identifier filled in) should be placed in Customizations > Main Layout in the code immediately before the </head>
tag.
Additionally, following that snippet (but still before the </head>
tag), if you want to track your logged-in users by name to know exactly what articles each logged-in user in your Private/Internal HelpSite is looking at, you can add the following snippet:
<!-- FullStory User Tracking -->
<script>
{% if current_user %}
FS.identify('{{current_user.email | escape}}', {
displayName: '{{current_user.name | escape}}',
email: '{{current_user.email | escape}}'
});
{% endif %}
</script>
Please get in touch if you have any questions or need help with this!