Skip to main content
Support

Connecting Google Analytics

​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.

Taylor
Updated by Taylor
2 min read

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.

This article has been updated to reflect the new GA4 tracking code
You'll need at least the Editor role on your Google Analytics property to access the Measurement ID.

Connecting Google Analytics to HelpDocs

  1. In your Google Analytics account head to Admin
  2. Under Data collection and modification, click Data streams
  3. On the Web tab, select the data stream you'd like to use
  4. Copy the Measurement ID (it'll look something like G-XXXXXXXXXX)
  5. In the HelpDocs dashboard go to Settings > Integrations
  6. Find and click the Google Analytics 4 tile
  7. Paste the Measurement ID you copied earlier into Google Analytics 4 Token/Code
  8. 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.

Active data filters permanently change the data Google Analytics collects. Don't use an Include only filter on a property that also tracks your website, or you'll stop collecting your website's traffic.
  1. In Google Analytics head to Admin
  2. Under Data collection and modification, click Data filters
  3. Click Create filter and choose the Web hostname traffic filter
    1. Name your filter (e.g. KB Traffic)
    2. Set the operation to Include only and the match type to exactly matches
    3. Enter your custom domain (e.g. help.yourdomain.com) if you're using one. Else enter your HelpDocs subdomain (e.g. exampleapp.helpdocs.io)
    4. Set the filter state to Testing so you can check it before it changes any data
  4. Hit Create
  5. Once you're happy with the results, set the filter state to Active and hit Save

What did you think of this doc?

Previous Connecting LiveChat Next Connecting Ada

Get in touch