Add Google Tag Manager and Google Analytics to your digital workplace

Caution

If your digital workplace requires adherence to HIPAA standards, please refer to Google's related documentation to ensure that you are using Google Analytics in a way that does not create obligations under HIPAA for Google.

 

HIPAA and Google Analytics

 

Google Tag Manager provides a method of tracking information on your digital workplace using triggers and tags. You can then connect this information to an analytics dashboard such as Google Analytics. 

Articles in this section

Considerations

Who can do this?

  • Enterprise administrators
  • Workplace administrators

Add Google Tag Manager and Google Analytics to your digital workplace

Google Analytics 4

Before setting up your Google Tag in Google Tag Manager, you must have a Google tag from Google Analytics to use: 

  1. Sign in to Google Analytics.
    • If you have a Google Analytics account: 
      1. Beside the Analytics logo, choose the account you want to use from the All accounts dropdown. 
      2. In the left side panel, select Admin.
      3. Select + Create and then Property.
    • If you do not have a Google Analytics account, you will be taken to the account sign-up process:
      1. In the Account Creation step, enter the following and then select Next
        • Account name: Enter a Google Analytics account name. 
        • Account Data Share Settings: Select your preferred options from the checklist. 
  2. In the Create a property step, configure the following fields and then select Next:
    • Property name: Enter a name that Google will use to refer to your digital workplace. 
    • Reporting time zone: Choose the appropriate time zone. 
    • Currency: Choose the appropriate currency. 
  3. In the Describe your business step, configure the following fields and then select Next:
    • Industry category: Choose the appropriate business category. 
    • Business size: Choose the appropriate business size. 
  4. In the Choose your business objectives step, select at least one objective and then Create
  5. Select I Accept when prompted with Google Analytics's Terms of Service.
  6. In the Data collection step, select Web
  7. In the Set up data stream step, enter the following fields and then select Create & continue:
    • Website URL: Enter your digital workplace's URL without the http://. For example, customercare.igloosoftware.com.
    • Stream name: Enter a name for the data stream. 
  8. In the Set up a Google tag step, copy the Google tag from the tag script into a text document for use in the next section. In the example below, the Google tag can be found in this line gtag('config', 'G-AAAAAAAAAA'); and is formatted as G-AAAAAAAAAA.
    <!-- Google tag (gtag.js) --> 
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-AAAAAAAAAA"></script>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'G-AAAAAAAAAA');
    </script>

Google Tag Manager

Once you have a Google tag from Google Analytics, use these steps to install it in Google Tag Manager. 

  1. Sign into Google Tag Manager. 
    • If you have a Google Tag Manager account and have set up the container: 
      1. Beside the Analytics logo, choose the account you want to use from the All accounts dropdown. 
      2. In the left side panel, select Admin.
      3. Select + Create and then Property.
    • If you do not have a Google Tag Manager account set up, you will be taken to the account sign-up process:
      1. Select Create Account.
      2. In the Add a New Account step, configure the following fields and select Create: 
        • Account Name: Enter an account name. 
        • Country: Select a country of origin for the account. 
        • Share my data anonymously with Google and others: (Optional) Select to share your data anonymously with Google and partners. 
        • Container name: Enter your digital workplace's URL without the http://. For example, customercare.igloosoftware.com.
        • Target platform: Select Web.  
      3. Select Yes to accept the Google Tag Manager Terms of Service Agreement.
  2. In the Install Google Tag Manager step, copy the script in the top text box. You do not need to add the script in the bottom text box to your digital workplace. The bottom script is a fallback if JavaScript is disabled; however, your digital workplace would not be functional if JavaScript was disabled.
    1. In a separate window, go to your digital workplace and select  Control Panel.
    2. Under Optimization, select Meta Tags.
    3. Paste your Global Site Tag into the provided text box. To avoid replacing existing information, paste this script at the bottom of the text box.

      Note:

      Adding code to the Header page containing errors can disrupt your digital workplace's functionality. Please use caution when adding code to this area.

    4. Select Save.
  3. Return to the Google Tag Manager window. 
  4. In the Test your website field, enter your digital workplace's URL and select Test
  5. Select Ok to close the window. 
  6. In the New Tag section, select Add a new tag
  7. Configure the following for the tag:  
    • Untitled Tag: Replace the text with a name for the tag. 
    • Tag Configuration: Select anywhere in the box to open the configuration window. In the Choose tag type window, select Google Tag
    • Tag ID: Enter the value from Step 8 of the Google Analytics section above. 
    • Triggering: Select anywhere in the box to open the configuration window. In the Choose a trigger window, select Initialization - All Pages
  8. Select Save
  9. In the main Tag Manager page, select Submit to save your changes. 
  10. (Optional) Give the version a name and description for easier identification later. 
  11. Select Publish

You have now set up the necessary steps to receive data from your digital workplace. Once Google Analytics starts receiving data from your digital workplace, you will be able to use Google Analytics reporting functions to analyze its performance. It can take up to 48 hours for Google Analytics to start receiving data for use.