Enabling Google Analytics for your Help Center Follow

team professional enterprise plans

You can use Google Analytics to track Help Center traffic if you are on Team or above. Enabling it involves getting the tracking ID from Google Analytics and then adding it to the Help Center.

This article contains the following sections:

Note: If you previously obtained the JavaScript snippet from Google Analytics and added it to your Help Center pages manually, you should remove the snippet before enabling the setting described in this article.

Adding your Help Center to Google Analytics

To track traffic via Google Analytics, you'll need a Google Analytics account, and attach your Help Center to it.

If you do not already have a Google Analytics account, start with Establishing a Google Analytics account.

If you already have a Google Analytics account, and simply want to add your Help Center to it, see Adding your Help Center to an existing Google Analytics account

Establishing a Google Analytics account

If you do not have a Google Analytics account, you'll need to create one before getting started.

To create a new Google Analytics account for your Help Center

  1. Go to www.google.com/analytics and create an account.
  2. On the New Account page, click Website.
  3. Use your Help Center information to fill out the account options. For example, if you're creating an account for your company, Mondocam, you'd enter the following:
    • Account Name: Mondocam
    • Website Name: Mondocam Help Center
    • Website URL: (Select https:// from the drop-down menu) mondocam.zendesk.com/hc

      Set the remaining options according to your preferences.

  4. Click Get Tracking ID and accept the Terms and Conditions.
  5. Copy and add the tracking ID to the Help Center as described in Adding the tracking ID to the Help Center, below.

Adding your Help Center to an existing Google Analytics account

You may already have a Google Analytics account. If so, you can add your Help Center to your existing account.

To add your Help Center to an established Google Analytics account

  1. Sign in to your Google Analytics account.
  2. If this is the first website associated with this Google Analytics account, click Sign Up.

    If you have other websites associated with this Google Analytics account, click Admin at the top of the page, and in the Account column, click the existing account name and select Create new account.

  3. Use your Help Center information to fill out the account options. For example, if you're creating an account for your company, Mondocam, you'd enter the following:
    • Account Name: Mondocam
    • Website Name: Mondocam Help Center
    • Website URL: (Select https:// from the drop-down menu) mondocam.zendesk.com/hc

      Set the remaining options according to your preferences.

  4. Click Get Tracking ID and accept the Terms and Conditions.
  5. Copy and add the tracking ID to the Help Center as described below.

Adding the tracking ID to the Help Center

Once you have your Help Center added to your Google Analytics account, you need to update your settings with the tracking ID you generated in the previous section.

To add the tracking ID to the Help Center

  1. In the Help Center, click General in the top menu bar, then select Help Center settings.

  2. In the Features section of the settings page, select the option to enable the Google Analytics and enter your tracking ID.

  3. Click Update on the upper-right side of the page.
Have more questions? Submit a request

Comments

  • 0

    Neither a general settings or a toolbox in the help desk admin interface anymore. Where to change GA code? :) (Or remove - we are converting to Tag manager)

  • 0

    Hi, Christian. I've updated the section in question to clarify that you need to be in your Help Center (not the Admin interface) to open the General Settings page. Let me know if it is still unclear.

    Thanks!

  • 0

    I was given a GA tracking ID and some tracking code to use on our Help Center. I added the ID in the general settings, is adding the code necessary as well? Where would I put it?

    Thank you,

    Olivia

  • 0

    Hi Olivia, The code is for custom tracking. You do not need to add it anywhere unless you plan on doing more granular tracking. More information can be found about how to use that in this article: https://support.zendesk.com/hc/en-us/articles/203664156-Google-Analytics-and-Help-Center-Part-3-Tracking-customers-actions That entire series of articles is useful.

  • 0

    Hi,

    I'm wondering what the impact of selecting http: rather than https: is for the Website URL field, and what would happen if I switched it. I'm in the process of re-implementing GA on our help center and the http: selection was made when this was originally set up. Thanks!

  • 1

    Hey Tony!

    Sorry about the delayed response here! I checked with some colleagues, and as far as we can tell this should not have any impact on your GA.

    Please let me know if you have any other questions!

  • 0

    A few months ago, Google Analytics changed the way they wanted to see code if two GA codes were used.  I updated to the new format:

    <script>

    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

     (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

     m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

     })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

     

    ga('create', 'UA-XXX7928-1', 'auto');

    ga('create', 'UA-XXXX9020-1', 'auto', 'XXtracker');

    ga('send', 'pageview');

    ga('XXtracker.send', 'pageview');

     

    </script>

     

    This is working fine placed in the "Header" HTML

    BUT, it is not recording any mobile traffic.

    I understand that using the Google Analytics under the Help Center General Settings will allow the GA code for ONE site and the code is also seen when accessing the mobile versions of the pages.

    Would it be possible to add an "Advanced" setting area to drop code?

    In other words, have a place that I could insert that code so both sites will receive the GA data.

    Thanks,

    Norm

  • 1

    Is there any way to add Google Analytics event tracking to the web widget? 

    You guys currently have some rudimentary tracking enabled for the web widget when chat is enabled, but I'd like to track things like: 

    1. User clicks on support widget; 

    2. User searches for an item within the help widget;

    3. User views an article from within the help widget;

    4. User clicks on "Contact" button from web widget. 

    I know that metrics for tickets actually submitted from the web widget are available, but I want to know how many tickets are actually being deflected from the widget. 

Please sign in to leave a comment.

Powered by Zendesk