Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google analytics with multiple subdomains

I've got a domain name lets call it example.com, which has multiple subdomains.

  1. blog.example.com
  2. shop.example.com
  3. press.example.com
  4. site.example.com

I'm trying to get these domains to all report properly in google analytics, first I'll share my current configuration then the issue that it caused.

Current configuration:

Under the Tracking Code tab in the admin. What are you tracking? = One domain with multiple subdomains

what are you tracking?

The root domain, example.com's profile is set as follows.

enter image description here

A subdomain, blog.example.com's profile is set as follows.

enter image description here

These subdomain profiles show up all under one account like they should.

enter image description here

I am not using any filters, and I just tried to filter by subdomain and I can't get it to work, no matter what the content and the numbers are all the numbers for example.com.

Problem with this configuration

All of the profiles have the same data, the content from the root domain.

I previously was not using filters now I am one for each subdomain looks like this:

enter image description here

like image 364
ThomasReggi Avatar asked Jun 11 '12 19:06

ThomasReggi


People also ask

Does Google Analytics work with subdomains?

GA4 also automatically handles subdomains. If you are working with a business that operates on multiple subdomains (e.g. blog.business.com, support.business.com, www.business.com, etc.), you will most likely want to track website visitors with Google Analytics across all these websites.

Does Google Analytics 4 track subdomains?

Will Google Analytics track subdomains? Yes, and you DON'T need cross-domain tracking for that. If you want to track different websites that belong to the same domain (e.g. blog.yourwebsite.com and www.yourwebsite.com), Google Analytics 4 will handle that automatically.

Can Google Analytics track two domains?

Cross-domain measurement is a Google Analytics feature that allows you to see sessions from two related sites (such as an ecommerce site and a separate shopping cart site) as a single session, rather than as two separate ones.


1 Answers

I haven't tried this, but setting up profiles could help as described here: http://www.ericmobley.net/guide-to-tracking-multiple-subdomains-in-google-analytics/

like image 83
Aniket Suryavanshi Avatar answered Sep 28 '22 11:09

Aniket Suryavanshi