Hi,

One of my sub domain website traffic is showing traffic equivalent to the main website. I have cheched the analytics setting and they seem fine.

The problem is limited only for 2 subdomains out of 10 subdomains, rest subdomains are showing proper results.

Dani AI

Generated

A compact diagnostic for : when two subdomains show the same traffic as the main site the cause is almost always configuration-related — hits from the subdomain are being sent to the same property/view as the main domain, or users are being redirected to the main domain. As noted, Analytics can track many subdomains; the task is to confirm which property and view are actually receiving those hits. Also keep ’s point in mind: session-level metrics (time on site, sessions) depend on how hits are attributed, so identical totals usually point to identical tracking setup.

Common diagnostic steps and checks (concise):

  • Verify the measurement ID present on pages of the affected subdomains (look for UA-XXXXX-Y for Universal or G-XXXXXXXX for GA4) and compare that ID to the property shown in Analytics Admin.
  • Use the property’s Real‑time report while loading the subdomain to see where the hit arrives.
  • Run an "All pages" report with Hostname as a secondary dimension (Universal) or use Page location in GA4 to confirm which hostnames are being recorded.
  • Look for duplicate snippets (theme + plugin), caching that serves the wrong header, or server redirects that canonize requests to the main domain.

Small examples of what to look for in page source:

<!-- Universal Analytics (example) -->
ga('create', 'UA-123456-1', 'auto');

<!-- Global site tag (GA4 example) -->
gtag('config', 'G-XXXXXXXX');

If separate reporting per subdomain is required, either install a distinct property/measurement ID on that subdomain, or (Universal) create a view with an "Include Hostname = subdomain.example.com" filter. Note that GA4 no longer uses views, so separate properties/data streams or Explorations filtered by hostname are the usual approach. The single most frequent root cause is a copied/misplaced tracking ID; verifying the ID on page source and watching Real‑time while loading the pages typically reveals the issue.

Recommended Answers

All 2 Replies

What do you mean it's limited to 2 subdomains? You can add many subdomains with Analytics.

Google analytic is a tool which provide the information of traffic of your site and also tell you how many time a visitors spend on your site.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.