University of Wisconsin–Madison

Connect to Google Tools

Overview

UW Theme 2.0 has options for connecting your site to Google Analytics, Google Tag Manager, Google Search Console, and Google Programmable Search Engine to track traffic and improve search results. This page provides guidance on how to set them up and where to find more help.

Before you begin

Before you connect Google tools, review these important considerations to ensure your setup is supported, secure, and compliant with campus policies.

What’s not supported

UW Theme 2.0 provides fields to connect your site, but the UW Theme Team and WiscWeb cannot offer support or general guidance on using these tools. For more help, visit Google documentation.

Google Analytics Practitioners Group

Join the Google Analytics Practitioners Group on Microsoft Teams to connect with others, share tips, and get help with Google Analytics 4.

HIPAA compliance

Some campus groups are part of UW–Madison’s Health Care Component (HCC) because they handle protected health information (PHI) under HIPAA. If your site is part of the HCC, do not add Google tools to your site without approval from your unit HIPAA Privacy or Security Coordinator.

Account creation tips

Use a departmental service account for Google tools when possible for security and maintaining shared access with your team members. This protects your team from access issues during staff turnover or when student employees leave. Learn how to create a service account.

Connect to Google tools

To connect your site, go to Appearance → Theme Settings → Google tab in your WordPress dashboard and enter the IDs provided by each Google tool. These IDs link your Google accounts to your UW Theme 2.0 site.

Example of the Google tab with tracking IDs for each Google tool.

Add Google Analytics Tracking ID

If you’re using Google Tag Manager to add Google Analytics (GA), skip to the Google Tag Manager section. We recommend adding GA using Google Tag Manager if you use more tracking platforms beyond GA, such as Google Ads or Meta Pixel. Learn more about Google Analytics.

Add Google Analytics by using the following steps:

  1. Log into Google Analytics.
  2. Create an Analytics account if you do not have one.
  3. Find and copy your Google Tag ID.
  4. Paste the Google tag ID in the Google Analytics Tracking ID field in Theme Settings.
  5. Logged-in users won’t appear in the report. Log out or ask someone else to visit the site to test.
  6. Check the Realtime report in GA to confirm traffic.
  7. No data after 24 hours? Visit Google’s troubleshooting guide.
The Google Tag ID usually starts with “G-“

Add Google Tag Manager Tracking ID

Google Tag Manager (GTM) allows you to centrally manage all marketing and analytics tags in one place like Google Analytics, Facebook Meta Pixel, and Google Ads. Learn more about Google Tag Manager.

Add Google Tag Manager by using the following steps:

  1. Log into Google Tag Manger
  2. Create a Tag Manager account if you do not have one one and choose “Web” as the target platform.
  3. Find and copy your container ID located in the Workspace tab.
  4. Paste the container ID into the Google Tag Manager tracking ID field in Theme Settings.
  5. You can now add desired tags to track data and clicks on your pages.
  6. Preview to test the connection. GTM scripts aren’t added for logged-in WordPress users, so log out if your tag data isn’t showing
  7. Publish your GTM container when ready to track live data.

To setup Google Analytics with GTM, follow Google’s documentation.

The Google Tag Manager container IDs start with “GTM-“

Add Google Search Console ID

Google Search Console helps you monitor, maintain, and troubleshoot your site’s presence in Google Search results. Learn more about Google Search Console.

Add Google Search Console by using the following steps:

  1. Log into Google Search Console.
  2. Follow instructions to add a new URL prefix property.
  3. Once your property is added, you will be asked to verify site ownership.
  4. Choose the HTML tag verification method.
  5. Google will give you a line of code.
  6. Only copy the long string of letters and numbers inside the quotations marks after “content=
  7. Paste that string into the Google Search Console verification tag field in Theme Settings.
Example of what the Search Console ID will look like. It’s 43 characters long.

Add Google Programmable Search Engine ID

Google Programmable Search Engine offers more powerful search than the default WordPress option, with support for autocomplete, custom result categories, analytics integration, and a more customizable search experience.

It can also index additional content like PDFs and custom post types (such as your staff member pages), helping users find information more easily. Learn more about Programmable Search Engine.

Add Google Programmable Search Engine using the following steps:

  • Make sure search is enabled in the Sitewide tab in Theme Settings
  • Visit UW Google Workspace’s documentation to create an ad-free Programmable Search Engine or remove ads from an existing account.
  • Find and copy your Programmable Search Engine ID
  • Paste the ID into the Google Programmable Search Engine ID field in Theme Settings
  • Search your site to see results from Programmable Search Engine.

Additional resources

For detailed instructions and troubleshooting, use Google’s official documentation and training materials. These resources offer the most up-to-date guidance for using and managing each tool.