I've got a domain name lets call it example.com
, which has multiple subdomains.
blog.example.com
shop.example.com
press.example.com
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
The root domain, example.com's profile
is set as follows.
A subdomain, blog.example.com's profile
is set as follows.
These subdomain profiles show up all under one account like they should.
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:
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.
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.
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With