How do I keep track of all the subdomains in a Web site in a configuration file? It includes two parts: one is to define the main domain in the page under all the domain names, and the other is to distinguish the file information under different domain names in the configuration file.
One, Code Setup
Tracing a child domain in the same configuration file used by the primary domain requires adding a row to the tracking code for each page in the subdomain. The following instructions assume that this configuration file is set in the case where the primary domain is a listed site, such as example.co.uk. Add the following lines (shown in bold) to the tracking code for all child domain pages and primary domain pages:
<script src= "/urchin. js" type= "Text/javascript" >
</script>
<script type= "Text/javascript" >
_udn= "example.co.uk";
</script>
This row should refer to the primary domain (example.co.uk).
Note that although this change allows you to track individual subdomains in a configuration file, your report may not be able to distinguish between pages from www.example.co.uk and help.example.co.uk. For example, in the most common content report, you may see www.example.co.uk/index.html and help.example.co.uk/more.html clicks, but the report will display the following:
/index.html
/more.html
Second, the use of filters to distinguish between URLs
If the area is a domain, you can create an advanced filter for the profile by following these settings:
After using this filter, the URL in common content displays the part of the domain:
Original: http://www.searchmarketingart.com/how-to-track-subdomains-in-one-profile.html