Google Analytics helps you track people landing on your website, then gives you insights into their behavior. HelpDocs integrates with Google Analytics to help you track what they're doing on your knowledge base too.
All it takes is a short code. There's no need to edit the header or footer.
Connecting Google Analytics to HelpDocs
- In your Google Analytics account head to Admin
- Under Data collection and modification, click Data streams
- On the Web tab, select the data stream you'd like to use
- Copy the Measurement ID (it'll look something like G-XXXXXXXXXX)

- In the HelpDocs dashboard go to Settings > Integrations
- Find and click the Google Analytics 4 tile
- Paste the Measurement ID you copied earlier into Google Analytics 4 Token/Code
- Hit Save changes
You'll now see all your HelpDocs traffic alongside your web traffic in Google Analytics🚦
Seeing Your Knowledge Base Traffic on Its Own
GA4 doesn't have views. If you wanna examine your knowledge base traffic on its own, the simplest way is to give it its own GA4 property and use that property's Measurement ID in the steps above.
In a property that's just for your knowledge base, you can keep out traffic from other hostnames with a data filter.
- In Google Analytics head to Admin
- Under Data collection and modification, click Data filters
- Click Create filter and choose the Web hostname traffic filter
- Name your filter (e.g. KB Traffic)
- Set the operation to Include only and the match type to exactly matches
- Enter your custom domain (e.g. help.yourdomain.com) if you're using one. Else enter your HelpDocs subdomain (e.g. exampleapp.helpdocs.io)
- Set the filter state to Testing so you can check it before it changes any data
- Hit Create
- Once you're happy with the results, set the filter state to Active and hit Save