{"id":26277,"date":"2019-09-05T07:00:18","date_gmt":"2019-09-05T14:00:18","guid":{"rendered":"https:\/\/eigene-homepage-erstellen.net\/?p=26277"},"modified":"2023-12-07T13:33:46","modified_gmt":"2023-12-07T21:33:46","slug":"integrating-google-analytics-hubspot","status":"publish","type":"post","link":"https:\/\/eigene-homepage-erstellen.net\/blog\/analytics\/integrating-google-analytics-hubspot.htm","title":{"rendered":"Connecting HubSpot and Google Analytics for Full Visibility"},"content":{"rendered":"\n

Updated on September 5, 2019, to include new examples and insights.<\/em><\/p>\n

A challenge we’ve seen all too often in the world of analytics is the minimal visibility clients have into their true <\/strong>return on investment—not just an ROI on how many leads were captured, but how many qualified leads were captured and how many of those turned into actual sales. ROI for actual sales is necessary when reporting on return by channel, determining paid budgets, and discerning the amount that can and should be invested in acquiring and keeping your customers.<\/p>\n

These insights are actually available, and are a result of what we call “Closed-Loop Analytics,” which links your website data (campaign clicks, acquisition sources, on-site conversions, etc.) with your CRM data (lead status, closed sales, etc.). In this blog post, we’ll walk through how to set up Closed-Loop Analytics by integrating Google Analytics and HubSpot data.<\/p>\n

Note: The general process of capturing this type of data can be applied to other platforms. However, for this post, we’ll be going through the specifics of integrating HubSpot with Google Analytics.<\/p>\n

When to Set Up Closed-Loop Analytics<\/h2>\n

Although Closed-Loop Analytics can be of use to any site, it’s particularly helpful for businesses with long sales cycles, when sales occur offline, and ones where most of the leads captured online don’t typically result in sales. If you’re using a CRM like HubSpot, you have the ability to track the status of different leads and mark them for follow up. Connecting that lead data in HubSpot with Google Analytics allows you to accurately credit channels and campaigns for website leads that have the potential to become sales and even those that actually become final sales.<\/p>\n

Closed-Loop Analytics also results in more accurate lifetime value metrics in analytics platforms, such as Google Analytics. This type of information empowers you to make data-backed decisions into how much a customer is worth investing in acquiring and retaining. For example, you could use Google Analytics to see which whitepapers were downloaded by your MQLs from HubSpot and justify investing more resources in creating more of that type of content.<\/p>\n

There’s an abundance of data that can be gathered, aside from what’s already been mentioned. Using Closed Loop Analytics, you can segment user data by lead status or field form, discern trends among the most qualified marketing leads, and identify the source that drives the most leads long-term. And you can then use all of this data to create Google Ads audiences and optimize<\/a> towards them; using this information to fine-tune your marketing efforts.<\/p>\n

How to Integrate HubSpot with Google Analytics<\/h2>\n

Broken down, Closed-Loop Analytics is the process of tracking individuals through Unique Identifiers (UIDs) in your analytics platform, sending the UID through your form to your CRM, and then marrying the data either back in your analytics platform or a reporting platform, like Google Data Studio.<\/p>\n

You can gain all of these insights through five steps:<\/p>\n

    \n
  1. Prepare your analytics platform to capture the UID<\/li>\n
  2. Capture UID using a tag management system<\/li>\n
  3. Customize forms to send the UID into your CRM<\/li>\n
  4. Export CRM data for use in the analytics platform<\/li>\n
  5. Begin building reports and analyzing data<\/li>\n<\/ol>\n

    Prepare Google Analytics to Capture Hubspot Data<\/h3>\n

    In Google Analytics, we’ll configure your property to capture your UID and additional dimensions from HubSpot, then create your data set to capture these dimensions.<\/p>\n

    To create your custom dimensions, navigate to Admin > Property > Custom Definitions > Custom Dimensions, then hit +Custom Dimension. This is where we’ll create a custom dimension that’ll capture our UIDs and associate them with each individual user we track in Google Analytics.<\/p>\n

    Name your custom dimension, set your scope as ‘user’ (so the UID will persist among sessions and not just within a session), and take note of the index number that’s provided.<\/p>\n

    This is when you can add in additional custom dimensions that you’ll send back into GA from your CRM. For example, you may want to capture and associate Lead Status, Interest Indication, or Company. Following the same process for the UID custom dimension, create new custom dimensions for every piece of information you’d like associated with your users in GA.<\/p>\n

    Next, we’ll create your data set with the dimensions to import from your CRM. Navigate to Admin > Property > Data Import in Google Analytics and click ‘Create.’<\/p>\n

    Configure your data set to the specifications shown above:<\/p>\n

      \n
    1. Type: User Data<\/li>\n
    2. Name the data set and select the GA view for importing<\/li>\n
    3. Set the Join Key as your User ID custom dimension<\/li>\n
    4. Select the custom dimensions that were created to capture your CRM data<\/li>\n
    5. Select ‘Yes’ to overwrite the data upon imports (this ensures that dimensions will update over time for the same user—for example, when a Lead Status changes from New Lead to MQL)<\/li>\n<\/ol>\n

      Once you save your data set, it will create an Excel sheet for you that’s formatted the way Google Analytics will be able to understand and import the data.<\/p>\n

      Setting Up User ID Tracking with Google Tag Manager<\/h3>\n

      User ID Tracking is necessary to facilitate Closed Loop Analytics properly. This process results in unique, non-PII (no Personally Identifiable Information) UIDs for every user on the site. These UIDs are recorded every time the same user visits the site, stitched together for a full user view, and integrated with our CRM data.<\/p>\n

      Recently, Michael Wiegand<\/a>, our Director of Analytics, published a blog post describing in detail how to set up User ID tracking for full visibility into online-to-offline attribution<\/a>. Visit his post for in-depth steps on how to set up User ID cookies and capture them in Google Analytics.<\/p>\n

      Customize Your HubSpot Forms to Capture UIDs<\/h3>\n

      Your HubSpot forms need to be updated to collect and tie together UIDs once they’re set up. The objective of this step is to grab the UID value and push it into a hidden field that’s submitted along with other lead information into our CRM.<\/p>\n

        \n
      1. \n
          \n
        1. Navigate to Setting > Properties > Create Property<\/li>\n
        2. Create a Custom Property, defining these criteria<\/a><\/li>\n
        3. Set the Label and Internal Name as ‘ruid’<\/li>\n
        4. Navigate to Marketing > Lead Capture > Forms<\/li>\n
        5. Create a new ‘Single-line text’ field<\/li>\n
        6. Set the ‘Field Label’ as ‘ruid’ and configure the rest of the fields as shown below:<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n

            \n
          1. Save the field<\/li>\n
          2. Edit the field by clicking on it and check the box that says ‘Make this field hidden’<\/li>\n<\/ol>\n

            Integrate Your HubSpot and Google Analytics Data<\/h3>\n

            Once the User IDs are collecting in Google Analytics, passing through to your CRM, and your analytics property is set up to capture this data, we can begin integrating the data.<\/p>\n

            There are two options to marry this data:<\/p>\n

              \n
            1. Export the data from HubSpot and import it into Google Analytics, or<\/li>\n
            2. Create a Google Data Studio Report<\/li>\n<\/ol>\n

              Import HubSpot Data into Google Analytics Reports<\/strong><\/p>\n

              To import CRM data into Google Analytics, we have to export the data we want from HubSpot and format it into the Excel sheet that was provided from our data set. This is set up through the following steps:<\/p>\n

                \n
              1. Download your HubSpot data by either:\n