---
title: "Connecting Google Analytics"
description: "​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."
url: "https://support.helpdocs.io/article/1Su1H7VKsE-connecting-google-analytics"
category: "Setting Up Integrations"
updated_at: "2023-03-31T13:45:54Z"
---

# Connecting Google Analytics

[Google Analytics](https://analytics.google.com) 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 **admin permissions** in Google Analytics to access the measurement code.

### Connecting Google Analytics to HelpDocs

1. In your Google Analytics account head to **Admin**
2. Click **Data Streams**
3. Select the Data Stream you'd like to use
4. Copy the **Measurement ID** (it'll look something like *G-XXXXXXXXXX*)
   
   ![](https://files.helpdocs.io/Ytt2uahFxY/articles/1Su1H7VKsE/1680270219104/screenshot-2023-03-31-at-14-41-35.png)
5. In the HelpDocs dashboard go to **Settings** &gt; [Integrations](https://my.helpdocs.io/app/settings?tab=integrations)
6. Find **Google Analytics**
7. Click ☰ **More** &gt; **Connect**
8. Paste the **Measurement ID** you copied earlier into the field
9. Hit **Save Changes**

You'll now see all your HelpDocs traffic alongside your web traffic in Google Analytics🚦

### Creating a New View and Filtering

If you wanna examine the traffic on its own you can [create a new view](https://support.google.com/analytics/answer/1009714?hl=en). Once you've created a new view, you'll need to apply some filters.

1. Make sure you're on your new view in the top left

<!--THE END-->

![](https://files.helpdocs.io/Ytt2uahFxY/articles/1Su1H7VKsE/1522316033194/screen-shot-2018-03-29-at-16-33-31.png)

1. Head to **Admin** &gt; **Filters**
2. Click **+ Add Filter**
   
   1. Name your filter (e.g. *KB Traffic*)
   2. Select **Predefined**
   3. Choose **Include only**, **traffic to the hostname**, and **that are equal to**
   4. Enter your [custom domain](/article/ABfqGbX2fi-setting-up-a-custom-domain) (e.g. *help.yourdomain.com*) if you're using one. Else enter your HelpDocs subdomain (e.g. *exampleapp.helpdocs.io*)

<!--THE END-->

![](https://files.helpdocs.io/Ytt2uahFxY/articles/1Su1H7VKsE/1545251044203/screenshot-2018-12-19-12-17-57.png)

1. Hit **Save**
