<div dir="ltr"><div>In the main site </div>If you have already enable the subdomain setting enabled in GA module then you don&#39;t have to add javascript code it is just adding extra line .<br><div>Something like this </div>

<div>&quot;var _gaq = _gaq || [];_gaq.push([&quot;_setAccount&quot;, &quot;UA-123456789-1&quot;]);_gaq.push([&quot;_setDomainName&quot;, &quot;.<a href="http://site.edu">site.edu</a>&quot;]);var _gaq = _gaq || [];<div><br>

</div><div>  _gaq.push([&#39;_setAccount&#39;, &#39;UA-123456789-1&#39;]);</div><div><br></div><div>  _gaq.push([&#39;_setDomainName&#39;, &#39;.<a href="http://site.edu">site.edu</a>&#39;]);_gaq.push([&quot;_trackPageview&quot;]);&quot;</div>

<div><br></div><div>And in your GA Account settings you also have to apply filters to add domain name to uri and you can also create profiles (50 per GA account) for each subdomain.</div><div>This link is helpful for GA settings <a href="http://cutroni.com/blog/2007/11/19/tracking-sub-domains-with-google-analytics/">http://cutroni.com/blog/2007/11/19/tracking-sub-domains-with-google-analytics/</a></div>

<div><br></div><br><div class="gmail_quote">On Sat, Dec 17, 2011 at 1:40 AM, Broyhill, Gary <span dir="ltr">&lt;<a href="mailto:Gary.Broyhill@lr.edu">Gary.Broyhill@lr.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I have a main domain, <a href="http://www.site.edu" target="_blank">www.site.edu</a> and 85 subdomains (<a href="http://intranet.site.edu" target="_blank">intranet.site.edu</a>,<br>
<a href="http://faculty.site.edu" target="_blank">faculty.site.edu</a>, etc.). I am tracking the main domain and all subdomains<br>
on one report in GA using a single Web Property ID (UA-123456789-1)<br>
<br>
For the main domain, I set the the Google Analytics module as follows:<br>
<br>
Web Property ID: UA-123456789-1<br>
What domains are you tracking? One domain with multiple sub-domains.<br>
In the Advanced Settings/Javascript snippets, I added the following in the<br>
Code Snippet (before) box:<br>
var _gaq = _gaq || [];<br>
  _gaq.push([&#39;_setAccount&#39;, &#39;UA-123456789-1&#39;]);<br>
  _gaq.push([&#39;_setDomainName&#39;, &#39;.<a href="http://site.edu" target="_blank">site.edu</a>&#39;]);<br>
<br>
For the sub-domains, I set the Google Analytics module as follows:<br>
<br>
Web Property ID: UA-123456789-1<br>
What domains are you tracking? A single domain.<br>
In the Advanced Settings/Javascript snippets, I added the following in the<br>
Code Snippet (before) box, per info obtained on the Google Analytics help<br>
pages:<br>
var _gaq = _gaq || [];<br>
_gaq.push([&#39;_setAccount&#39;, &#39;UA-123456789-1&#39;]);<br>
_gaq.push([&#39;_setDomainName&#39;, &#39;.<a href="http://site.edu" target="_blank">site.edu</a>&#39;]);<br>
<br>
This all seems to work ok, except the following problem: on my GA Top<br>
Content report, I cannot tell where the hits came from. Example: my 24th<br>
highest entry is listed as \program.   That node appears on many of my<br>
subdomains. Is it aggregating every instance of \program across 85<br>
subdomains into one metric? If you click on it in the report, it gives a<br>
404 error.<br>
<br>
If I go to the Content by Title view, it&#39;s a little better because I can<br>
see the names of the pages.<br>
<br>
I am wondering if I have everything set up correctly. If you are whiz at<br>
GA/Drupal and can tell if my settings are wrong, please let me know! They<br>
came about from much trial and error and digging through the GA help pages.<br>
<br>
Thanks!<br>
<br>
Gary Broyhill<br>
Lenoir-Rhyne University<br>
<a href="http://www.lr.edu" target="_blank">www.lr.edu</a><br>
<font color="#888888"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Regards,<br>Jibran Ijaz</div><br>
</div></div>