How Can You View Subdomains in Google Analytics?

Alexandre Airvault
May 29, 2024
If you manage a website with multiple subdomains, understanding how to see these subdomains in Google Analytics is crucial for tracking their performance. This guide walks you through the steps to set up and view subdomain data in Google Analytics. Whether you use Google Analytics 4 (GA4) or an earlier version, you'll learn the necessary configurations to get accurate and detailed insights into each subdomain's traffic and user behavior.

Optimize your Google Ads spending with AI

Get started free

Configuring Subdomain Tracking in Google Analytics

To view subdomains in Google Analytics, you need to set up subdomain tracking. This process varies slightly depending on whether you use Google Analytics 4 (GA4) or Universal Analytics (UA). Here's how to configure subdomain tracking in each version:

Google Analytics 4 (GA4)

  1. Navigate to your GA4 property's admin settings.
  2. Click on "Data Streams" and select your web data stream.
  3. Under "Configure Tag Settings," click "Show More."
  4. In the "List unwanted referrals" field, enter your subdomain(s) — for example, "blog.example.com".
  5. Save your changes.

By listing your subdomains as unwanted referrals, GA4 will treat them as part of your main domain, ensuring accurate tracking and reporting.

Universal Analytics (UA)

  1. Go to your UA property's admin settings.
  2. Click on "Tracking Info" and then "Referral Exclusion List."
  3. Add your subdomain(s) to the list — for instance, "support.example.com".
  4. Save your changes.

Excluding your subdomains from referrals in UA ensures that traffic between your main domain and subdomains is not counted as referral traffic, providing a more accurate view of user behavior.

Viewing Subdomain Data in Google Analytics Reports

Once you've configured subdomain tracking, you can view subdomain-specific data in your Google Analytics reports:

Google Analytics 4 (GA4)

  • In your GA4 reports, click on the "Dimensions" drop-down menu.
  • Search for and select "Hostname."
  • Your report will now display data broken down by subdomain.

For example, if you run an e-commerce website with a blog subdomain (blog.example.com), you can use the Hostname dimension to see how much traffic and engagement each subdomain receives.

Universal Analytics (UA)

  • In your UA reports, navigate to "Audience" > "Technology" > "Network."
  • Click on the "Hostname" tab to view data by subdomain.

By analyzing subdomain data in UA, you can identify which subdomains drive the most traffic, conversions, or other key metrics, helping you optimize your website's performance.

For more information on subdomain tracking and reporting, refer to the Google Analytics documentation.

Troubleshooting Subdomain Tracking Issues

If you've set up subdomain tracking but still aren't seeing the expected data in your Google Analytics reports, here are some common issues and solutions:

Incorrect Referral Exclusion Settings

  • Double-check that you've added all relevant subdomains to the referral exclusion list in GA4 or UA.
  • Ensure that the subdomains are entered correctly, without any typos or extra characters.

Incorrect referral exclusion settings can lead to inaccurate tracking, so it's essential to verify that your subdomains are properly listed.

Inconsistent Tracking Code Implementation

  • Verify that the Google Analytics tracking code is correctly implemented on all pages across your main domain and subdomains.
  • Check that the tracking code is placed in the <head> section of each page's HTML.
  • Ensure that the tracking code is the same across all pages and subdomains.

Inconsistent or missing tracking code can result in incomplete or inaccurate data in your Google Analytics reports.

Cross-Domain Tracking Issues

  • If your subdomains require separate tracking properties, ensure that cross-domain tracking is set up correctly.
  • Follow the Google Analytics cross-domain tracking guide to link your properties and ensure seamless tracking across subdomains.

Proper cross-domain tracking is crucial for accurately tracking user behavior across multiple properties.

Analyzing Subdomain Performance

Once you have accurate subdomain data in Google Analytics, you can analyze the performance of each subdomain to optimize your website:

  • Compare traffic, engagement, and conversion metrics across subdomains to identify top-performing and underperforming areas.
  • Use custom segments to isolate specific subdomains and analyze their unique user behaviors and characteristics.
  • Set up custom reports and dashboards to monitor key subdomain metrics and track progress over time.

For instance, if you notice that your blog subdomain has a high bounce rate, you can investigate the content, user experience, and navigation to identify potential improvements. By continuously monitoring and optimizing each subdomain, you can ensure that your website is providing value to your users and achieving your business goals.

Leveraging Subdomain Insights for Website Optimization

By setting up subdomain tracking and analyzing the data in Google Analytics, you can gain valuable insights into how each subdomain contributes to your website's overall performance. Use these insights to make data-driven decisions and optimize your website:

  • Identify top-performing subdomains and analyze what makes them successful. Apply these learnings to other subdomains to improve their performance.
  • Detect underperforming subdomains and investigate the reasons behind their poor performance. Implement changes to content, design, or functionality to enhance user experience and engagement.
  • Monitor the impact of subdomain optimizations by comparing pre- and post-optimization data. Continuously iterate and refine your optimizations based on the results.

For example, if your e-commerce website's support subdomain has a high conversion rate for product inquiries, you can analyze the subdomain's content and user flow to identify best practices. Apply these findings to optimize product pages and user support on your main domain, potentially boosting overall conversions.

By leveraging subdomain insights, you can create a more cohesive and effective website that drives better results for your business. Regularly monitoring and analyzing subdomain data in Google Analytics is key to staying ahead in today's competitive digital landscape.

Subdomains play a crucial role in your website's structure and performance. By setting up accurate subdomain tracking in Google Analytics and leveraging the insights gained from subdomain data, you can optimize your website for better user experience, engagement, and conversions. Stay proactive in monitoring and analyzing your subdomain performance to ensure your website is always driving the best possible results for your business.

On the same topic...

What Goals Can You Set in Google Analytics 4?

Explore the diverse goal types in Google Analytics 4: Destination, Duration, Pages/Screens per session, and Event goals. Enhance your tracking strategies today.

Can I Track App Usage with Google Analytics?

Learn how to monitor app performance effectively using Google Analytics, including tracking user behavior and optimizing app usage data.

Can Google Analytics Be Utilized on Amazon to Track Website Performance?

Learn how to leverage Google Analytics for Amazon sales tracking. Maximize data insights for e-commerce success. Find out more!

Can Google Analytics Track Customer Lifetime Value?

Learn how Google Analytics can track Customer Lifetime Value and optimize your marketing strategies effectively. Find out more in this comprehensive guide.

Can Google Analytics Track Devices? A Comprehensive Guide

Learn how Google Analytics can track devices accurately. Explore device tracking capabilities and optimize your data analysis for better insights.

Can Google Analytics Track Downloads? Discover the Answer Here!

Learn how Google Analytics can accurately track downloads on your website, optimizing data insights for better decision-making. Explore now!

Can Google Analytics Track Email Opens and Provide Valuable Insights?

Learn how Google Analytics can track email opens, optimize your email marketing strategy, and improve customer engagement for better insights.

Can Google Analytics Track IP Addresses and What Does It Mean for Your Website?

Learn about the ability of Google Analytics to track IP addresses and its implications for website data analysis and privacy concerns.