What will happen if you install the same default tracking code on pages with different domains?
Analytics will alert you about duplicate data collection
Analytics will not associate these users and sessions with any domain
Analytics will associate these users and sessions with a single domain
Analytics will associate these users and sessions with their respective domains
Explanation:
Domains and directories
One of the first things you should know about when using and configuring Analytics is how the domain of the web property you are tracking is defined as a “site” for the purposes of viewing your reports. The default setup of the tracking code is designed to make it easy for you to track traffic to a single domain or subdomain (e.g. a single website URL) that does not share user data with other domains or sub-domains.
For example, if your pet store URL is dogs.example.com
and you install the tracking code with its web property ID on those pages, tracking is automatically set up to track user data only for this single URL. In a similar way, if you own the primary domain, such as www.example.com
, and you install tracking for all pages on this site, user and referral traffic is recorded separately for www.example.com
.
Read more here: https://support.google.com/analytics/answer/6205202?hl=en
Missing tracking code notification
Diagnostics makes regular, periodic evaluations of your Analytics implementation, and provides notifications as a gentle reminder of how to keep Analytics tuned to ensure the best data, performance, and analysis.
Analytics regularly attempts to find pages on a website that do not have properly installed tracking code. The system looks at results of the Google-search crawl on websites associated with Analytics accounts. A subset of those pages are crawled with JavaScript enabled, and the execution results are examined to confirm the expected hits would have been sent. Note that the hits are not actually sent to Analytics and therefore do not inflate your traffic numbers.
Read more here: https://support.google.com/analytics/answer/7030884?hl=en