Track knowledge base analytics with Fathom

Fathom Analytics is a simpler, more accurate, and privacy-first analytics solution. You can import your Google Analytics data (UA and GA4), add a single line of code, and watch real-time analytics from your site pour in.

fathomanalytics.png

It's possible to track your knowledge base visits and performance with Fathom seamlessly by following the guide below.

  1. Add a new website on Fathom Analytics.
    Make sure you set your knowledge base URL as Domain

  2. Head over to Fernand's settings → Knowledge Base → Custom JS section

  3. Paste the code below, making sure to replace YOUR-SITE-ID by your actual SiteID from Fathom

var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://cdn.usefathom.com/script.js';
script.dataset.site = 'YOUR-SITE-ID'
script.defer = true;
document.getElementsByTagName('head')[0].appendChild(script);

Was this helpful?