And any pages beneath it. To analyze sessions Google Analytics collects a Client-ID value with every hit.
The standard Analytics tag records traffic to a given URL as a group.
Google analytics sub domain tracking. 3 Under the property column navigate to Tracking Info Referral Exclusion List. Make sure you are using the latest version of Google Analyticscalled Universal Analytics. Cookies are stored on a per-domain basis and websites on one domain cannot.
For example you might see your pages appear in the Site Content report like this. This reference describes the methods that you use for customizing how Google Analytics reporting works across domains across different hosts or within sub-directories of a website. To have the ability of Tracking multiple domains in Google Analytics you will need to use __setDomainName.
Tracking Your Subdomains in Google Analytics Tracking the traffic on your subdomains in Google Analytics can appear tricky at first but really its quite simple. Gajs is a legacy library. Set the Cookie Domain On-page set the Cookie Domain to auto This is the default setting for Universal.
Subdomain Tracking with Google Analytics and Google Tag Manager If you are working with a business that operates on multiple subdomains eg. 2 Access the admin panel by clicking the gear icon in the bottom left of the screen. Thankfully this part is usually pretty easy.
Client-ID values are stored in cookies. How to Properly Implement Subdomain Tracking Step 1. Any page with that tracking ID regardless of the site its on will send data to that property.
Remember that with Universal Analytics you will be using a View Filter while in GA4 this step isnt necessary. To apply the referral exclusion return to the admin menu in Google Analytics. If you are starting a new implementation we recommend you use the latest version of this library analyticsjsFor existing implementations learn how to migrate from gajs to analyticsjs.
Using separate tracking IDs Tracking IDs are the unique codes that youre given when you create a Google Analytics property and look something like UA-123456-1. Log in to your Google Analytics account if you havent done so already. You will also need to make sure that you reference your main domain or parent domain.
Once your property is selected click on tracking info and then referral exclusion list. Set up and View Subdomain Tracking. If you are satisfied with the results simply add the filter to your main view to report subdomain stats.
Adding a referral exclusion on your website property will prevent the subdomain traffic from showing up as a self-referral and skewing your reports. How to set up and view subdomain tracking in Google Analytics Adding Google Analytics to your Site. The Google Analytics script must be added in all of the websites you want to track.
You will need to add this line of code below your tracking code on each subdomain page that you have. But its important to get the settings right to make sure that you are tracking Sessions and Users the proper way. Tracking Subdomains with Google Analytics is not as complicated as it may seem.
Read more here to find out how to track or exclude Subdomains in Google Analytics Views the smart way. By default Analytics only includes the page path and page name not the domains name. If you are setting up sub-directory tracking on your domain you should also ensure that Analytics tracking is disabled for the root path eg.
The first step in setting up Google Analytics to track multiple subdomains is to install the correct code. 4 Your root domain may already be in this table. Update Your Referral Exclusion List.
1 Log in to Google Analytics and select any view from the account that you wish to implement cross-subdomain tracking.