<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Google Analytics SubDomains Tracking Part One</title>
	<atom:link href="http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=track-subdomains-part-1-google-analytics-subdomain-tracking</link>
	<description>:: Searchbrat.com</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:12:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: searchbrat</title>
		<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/comment-page-1/#comment-9990</link>
		<dc:creator>searchbrat</dc:creator>
		<pubDate>Fri, 29 Oct 2010 19:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchbrat.com/?p=198#comment-9990</guid>
		<description>Hey Mitch&lt;br&gt;&lt;br&gt;When you say &quot;click on them in GA&quot; do you mean when trying to use &quot;In Page Analytics&quot; i.e. within Google Analytics itself.</description>
		<content:encoded><![CDATA[<p>Hey Mitch</p>
<p>When you say &#8220;click on them in GA&#8221; do you mean when trying to use &#8220;In Page Analytics&#8221; i.e. within Google Analytics itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitch Allen</title>
		<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/comment-page-1/#comment-9989</link>
		<dc:creator>Mitch Allen</dc:creator>
		<pubDate>Fri, 29 Oct 2010 18:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchbrat.com/?p=198#comment-9989</guid>
		<description>I&#039;m also having a problem where subdomains show up with slash in front of them.  For example:  /&lt;a href=&quot;http://sub1.mydomain.com&quot; rel=&quot;nofollow&quot;&gt;sub1.mydomain.com&lt;/a&gt; - then when I click on them in GA, it tries to open:  mydomain/&lt;a href=&quot;http://sub1.mydomain.com&quot; rel=&quot;nofollow&quot;&gt;sub1.mydomain.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Here is what I have in the header (built by a WordPress plugin - domain names and UA ids changed to protect the innocent. :) ):&lt;br&gt;&lt;br&gt;	&lt;script type=&quot;text/javascript&quot;&gt;//	// Google Analytics for WordPress by Yoast v4.06 &#124; &lt;a href=&quot;http://yoast.com/wordpress/google-analytics/&lt;br&gt;&quot; rel=&quot;nofollow&quot;&gt;http://yoast.com/wordpress/google-analytics/&lt;br&gt;&lt;/a&gt;;	var _gaq = _gaq &#124;&#124; [];&lt;br&gt;	_gaq.push([&#039;_setAccount&#039;,&#039;UA-XXXXXXXX-X&#039;]);&lt;br&gt;	_gaq.push([&#039;_setDomainName&#039;,&#039;.&lt;a href=&quot;http://mydomain.com&quot; rel=&quot;nofollow&quot;&gt;mydomain.com&lt;/a&gt;&#039;],[&#039;_trackPageview&#039;]);&lt;br&gt;	(function() {&lt;br&gt;		var ga = document.createElement(&#039;script&#039;); ga.type = &#039;text/javascript&#039;; ga.async = true;&lt;br&gt;		ga.src = (&#039;https:&#039; == document.location.protocol ? &#039;https://ssl&#039; : &#039;http://www&#039;) + &#039;.&lt;a href=&quot;http://google-analytics.com/ga.js&#039;;&lt;br&gt;&quot; rel=&quot;nofollow&quot;&gt;google-analytics.com/ga.js&#039;;&lt;br&gt;&lt;/a&gt;;		var s = document.getElementsByTagName(&#039;script&#039;)[0]; s.parentNode.insertBefore(ga, s);&lt;br&gt;	})();&lt;br&gt;	// End of Google Analytics for WordPress by Yoast v4.0&lt;br&gt;	//]]&gt;&lt;/script&gt;</description>
		<content:encoded><![CDATA[<p>I&#39;m also having a problem where subdomains show up with slash in front of them.  For example:  /<a href="http://sub1.mydomain.com" rel="nofollow">sub1.mydomain.com</a> &#8211; then when I click on them in GA, it tries to open:  mydomain/<a href="http://sub1.mydomain.com" rel="nofollow">sub1.mydomain.com</a></p>
<p>Here is what I have in the header (built by a WordPress plugin &#8211; domain names and UA ids changed to protect the innocent. <img src='http://www.searchbrat.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ):</p>
<p>	&lt;script type=&#8221;text/javascript&#8221;&gt;//	// Google Analytics for WordPress by Yoast v4.06 | <a href="http://yoast.com/wordpress/google-analytics/<br />&#8221; rel=&#8221;nofollow&#8221;><a href="http://yoast.com/wordpress/google-analytics/" rel="nofollow">http://yoast.com/wordpress/google-analytics/</a><br />;	var _gaq = _gaq || [];<br />	_gaq.push([&#39;_setAccount&#39;,&#39;UA-XXXXXXXX-X&#39;]);<br />	_gaq.push([&#39;_setDomainName&#39;,&#39;.<a href="http://mydomain.com" rel="nofollow">mydomain.com</a>&#39;],[&#39;_trackPageview&#39;]);<br />	(function() {<br />		var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;<br />		ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;<a href="https://ssl&#038;#39" rel="nofollow">https://ssl&#038;#39</a>; : &#39;<a href="http://www&#038;#39" rel="nofollow">http://www&#038;#39</a> <img src='http://www.searchbrat.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  + &#39;.<a href="http://google-analytics.com/ga.js&#39;;<br />&#8221; rel=&#8221;nofollow&#8221;>google-analytics.com/ga.js&#39;;<br />;		var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);<br />	})();<br />	// End of Google Analytics for WordPress by Yoast v4.0<br />	//]]&gt;&lt;/script&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: searchbrat</title>
		<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/comment-page-1/#comment-9467</link>
		<dc:creator>searchbrat</dc:creator>
		<pubDate>Wed, 31 Mar 2010 02:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchbrat.com/?p=198#comment-9467</guid>
		<description>Hi Gil&lt;br&gt;&lt;br&gt;Yes, you should have the *.* consistent in all places.&lt;br&gt;&lt;br&gt;Also, you should have a filter running that appends the domain name onto the URL. By default Google will show the following:&lt;br&gt;&lt;br&gt;/page_1&lt;br&gt;/page_2&lt;br&gt;&lt;br&gt;You want to change this so it shows as&lt;br&gt;&lt;br&gt;mydomain.com/page_1&lt;br&gt;mydomain_2.com/page_2&lt;br&gt;&lt;br&gt;Without seeing your site it&#039;s difficult to give a definitive answer as to what is wrong. If you want to send me the details privately (via Contact), I will be happy to take a look ?&lt;br&gt;&lt;br&gt;Thanks</description>
		<content:encoded><![CDATA[<p>Hi Gil</p>
<p>Yes, you should have the *.* consistent in all places.</p>
<p>Also, you should have a filter running that appends the domain name onto the URL. By default Google will show the following:</p>
<p>/page_1<br />/page_2</p>
<p>You want to change this so it shows as</p>
<p>mydomain.com/page_1<br />mydomain_2.com/page_2</p>
<p>Without seeing your site it&#39;s difficult to give a definitive answer as to what is wrong. If you want to send me the details privately (via Contact), I will be happy to take a look ?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gil_34</title>
		<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/comment-page-1/#comment-9460</link>
		<dc:creator>gil_34</dc:creator>
		<pubDate>Mon, 29 Mar 2010 16:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchbrat.com/?p=198#comment-9460</guid>
		<description>I am desperate with this filter. Our agancy implemented the additional line pageTracker._setDomainName(“.mainsite.com”); to the tracking code but still after integrating the filter we have strange reports. Some sites are shown with domain names and some are not. And is is right that pages with domains appear with / before in analytics like this: /www.mydomain.com/? (this is the case when analytics shows the domain)&lt;br&gt;&lt;br&gt;Maybe there is something wrong within the tracking code? &lt;br&gt;The tracking code in our main domain looks like this: &lt;br&gt;&lt;br&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;br&gt;var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;);&lt;br&gt;document.write(unescape(&quot;%3Cscript src=&#039;&quot; + gaJsHost + &quot;google-analytics.com/ga.js&#039; type=&#039;text/javascript&#039;%3E%3C/script%3E&quot;));&lt;br&gt;&lt;/script&gt;&lt;br&gt;&lt;br&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;br&gt;var pageTracker = _gat._getTracker(&quot;UA-xxxxxx-1&quot;);&lt;br&gt;pageTracker._setDomainName (&quot;mydomain.com&quot;);&lt;br&gt;pageTracker._trackPageview();&lt;br&gt;	&lt;/script&gt;&lt;br&gt;&lt;br&gt;I can see that there is no &quot;.&quot; and a space after setDomainDame (...) Could that be the problem? Becaus the code on the sites of our subdomain looks just fine like this:&lt;br&gt;&lt;br&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;br&gt;var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&quot; : &quot;http://www.&quot;); document.write(unescape(&quot;%3Cscript src=&#039;&quot; + gaJsHost + &quot;google-analytics.com/ga.js&#039; type=&#039;text/javascript&#039;%3E%3C/script%3E&quot;));&lt;br&gt;&lt;/script&gt;&lt;br&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;br&gt;try {&lt;br&gt;	var pageTracker = _gat._getTracker(&quot;UA-xxxxxx-1&quot;);&lt;br&gt;	pageTracker._setDomainName(&quot;.mydomain.com&quot;);&lt;br&gt;	pageTracker._trackPageview();&lt;br&gt;}&lt;br&gt;catch (err) { }&lt;br&gt;&lt;/script&gt;&lt;br&gt;&lt;br&gt;Is the difference with this &quot;.&quot; and no&quot;.&quot; the problem? The filter was implemented just as described. &lt;br&gt;&lt;br&gt;Thank you so much for help! &lt;br&gt;Gil</description>
		<content:encoded><![CDATA[<p>I am desperate with this filter. Our agancy implemented the additional line pageTracker._setDomainName(“.mainsite.com”); to the tracking code but still after integrating the filter we have strange reports. Some sites are shown with domain names and some are not. And is is right that pages with domains appear with / before in analytics like this: /www.mydomain.com/? (this is the case when analytics shows the domain)</p>
<p>Maybe there is something wrong within the tracking code? <br />The tracking code in our main domain looks like this: </p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />var gaJsHost = ((&#8220;https:&#8221; == document.location.protocol) ? &#8220;https://ssl.&#8221; : &#8220;http://www.&#8221;);<br />document.write(unescape(&#8220;%3Cscript src=&#39;&#8221; + gaJsHost + &#8220;google-analytics.com/ga.js&#39; type=&#39;text/javascript&#39;%3E%3C/script%3E&#8221;));<br />&lt;/script&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />var pageTracker = _gat._getTracker(&#8220;UA-xxxxxx-1&#8243;);<br />pageTracker._setDomainName (&#8220;mydomain.com&#8221;);<br />pageTracker._trackPageview();<br />	&lt;/script&gt;</p>
<p>I can see that there is no &#8220;.&#8221; and a space after setDomainDame (&#8230;) Could that be the problem? Becaus the code on the sites of our subdomain looks just fine like this:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />var gaJsHost = ((&#8220;https:&#8221; == document.location.protocol) ? &#8220;https://ssl.&#8221; : &#8220;http://www.&#8221;); document.write(unescape(&#8220;%3Cscript src=&#39;&#8221; + gaJsHost + &#8220;google-analytics.com/ga.js&#39; type=&#39;text/javascript&#39;%3E%3C/script%3E&#8221;));<br />&lt;/script&gt;<br />&lt;script type=&#8221;text/javascript&#8221;&gt;<br />try {<br />	var pageTracker = _gat._getTracker(&#8220;UA-xxxxxx-1&#8243;);<br />	pageTracker._setDomainName(&#8220;.mydomain.com&#8221;);<br />	pageTracker._trackPageview();<br />}<br />catch (err) { }<br />&lt;/script&gt;</p>
<p>Is the difference with this &#8220;.&#8221; and no&#8221;.&#8221; the problem? The filter was implemented just as described. </p>
<p>Thank you so much for help! <br />Gil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kieran Flanagan</title>
		<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/comment-page-1/#comment-7069</link>
		<dc:creator>Kieran Flanagan</dc:creator>
		<pubDate>Mon, 16 Nov 2009 10:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchbrat.com/?p=198#comment-7069</guid>
		<description>No problem Tim, let me know if you ever need a fresh pair of eyes to look at anything</description>
		<content:encoded><![CDATA[<p>No problem Tim, let me know if you ever need a fresh pair of eyes to look at anything</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Day</title>
		<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/comment-page-1/#comment-7057</link>
		<dc:creator>Tim Day</dc:creator>
		<pubDate>Mon, 16 Nov 2009 02:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchbrat.com/?p=198#comment-7057</guid>
		<description>Please ignore that last question - I had a typo in my filter constructor.   New to this!</description>
		<content:encoded><![CDATA[<p>Please ignore that last question &#8211; I had a typo in my filter constructor.   New to this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Day</title>
		<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/comment-page-1/#comment-7056</link>
		<dc:creator>Tim Day</dc:creator>
		<pubDate>Mon, 16 Nov 2009 02:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchbrat.com/?p=198#comment-7056</guid>
		<description>I have a quick question in terms of this.  We&#039;re hosting one of our sub-domains as http://www.subdomain.domain.org.au, with the extra &quot;www&quot; preceding the subdomain, and for some reason, this site isn&#039;t being tracked.  All the code is set up as described above, and one one profile where I limit it to just the subdomain it comes through fine, but not the profile set to track all subdomains.  Any ideas why?

cheers,
Tim</description>
		<content:encoded><![CDATA[<p>I have a quick question in terms of this.  We&#8217;re hosting one of our sub-domains as <a href="http://www.subdomain.domain.org.au" rel="nofollow">http://www.subdomain.domain.org.au</a>, with the extra &#8220;www&#8221; preceding the subdomain, and for some reason, this site isn&#8217;t being tracked.  All the code is set up as described above, and one one profile where I limit it to just the subdomain it comes through fine, but not the profile set to track all subdomains.  Any ideas why?</p>
<p>cheers,<br />
Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kieran Flanagan</title>
		<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/comment-page-1/#comment-2635</link>
		<dc:creator>Kieran Flanagan</dc:creator>
		<pubDate>Sun, 17 May 2009 12:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchbrat.com/?p=198#comment-2635</guid>
		<description>Sorry Oscar the code I pasted above didn&#039;t get shown. You can see in my post above, I give an example of how the tracking code should look on each page. Under point 1.</description>
		<content:encoded><![CDATA[<p>Sorry Oscar the code I pasted above didn&#8217;t get shown. You can see in my post above, I give an example of how the tracking code should look on each page. Under point 1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kieran Flanagan</title>
		<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/comment-page-1/#comment-2634</link>
		<dc:creator>Kieran Flanagan</dc:creator>
		<pubDate>Sun, 17 May 2009 12:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchbrat.com/?p=198#comment-2634</guid>
		<description>Hi Oscar

Do you have your tracking code setup on all pages as follows:

&lt;script type=”text/javascript”&gt;
try {
var pageTracker = _gat._getTracker(”UA-XXXXXX-X”);
pageTracker._setDomainName(”.mainsite.com”);
pageTracker._trackPageview();
} catch(err) {}
&lt;/script&gt;

With the setDomainName used. This will ensure all sub domains are counted as part of your main site.

Let me know if this helps 

Thanks

Kieran</description>
		<content:encoded><![CDATA[<p>Hi Oscar</p>
<p>Do you have your tracking code setup on all pages as follows:</p>
<p><script type=”text/javascript”>
try {
var pageTracker = _gat._getTracker(”UA-XXXXXX-X”);
pageTracker._setDomainName(”.mainsite.com”);
pageTracker._trackPageview();
} catch(err) {}
</script></p>
<p>With the setDomainName used. This will ensure all sub domains are counted as part of your main site.</p>
<p>Let me know if this helps </p>
<p>Thanks</p>
<p>Kieran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://www.searchbrat.com/track-subdomains-part-1-google-analytics-subdomain-tracking/comment-page-1/#comment-2575</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Fri, 15 May 2009 19:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.searchbrat.com/?p=198#comment-2575</guid>
		<description>Hi I loved your post and I think it is helping me along the way. In terms of getting my subdomains to register in my &quot;top content&quot; reports.

My funnels are not working properly however :(

But I am running into an issue and thought that maybe you can &quot;spell it out&quot; for me.

I want to track from any page on a subdomain (so i know the user came in through the sub domain) to the main site....

so like:

sub.domain.com
www.domain.com/register-step1.php
www.domain.com/register.step2.php
www.domain.com/register.step3.php


I have tried a bunch of things and for some reason it never registers the sub.domain.com in any of my goals.

Can you shed some light on this?

Thanks!
Oscar</description>
		<content:encoded><![CDATA[<p>Hi I loved your post and I think it is helping me along the way. In terms of getting my subdomains to register in my &#8220;top content&#8221; reports.</p>
<p>My funnels are not working properly however <img src='http://www.searchbrat.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>But I am running into an issue and thought that maybe you can &#8220;spell it out&#8221; for me.</p>
<p>I want to track from any page on a subdomain (so i know the user came in through the sub domain) to the main site&#8230;.</p>
<p>so like:</p>
<p>sub.domain.com<br />
<a href="http://www.domain.com/register-step1.php" rel="nofollow">http://www.domain.com/register-step1.php</a><br />
<a href="http://www.domain.com/register.step2.php" rel="nofollow">http://www.domain.com/register.step2.php</a><br />
<a href="http://www.domain.com/register.step3.php" rel="nofollow">http://www.domain.com/register.step3.php</a></p>
<p>I have tried a bunch of things and for some reason it never registers the sub.domain.com in any of my goals.</p>
<p>Can you shed some light on this?</p>
<p>Thanks!<br />
Oscar</p>
]]></content:encoded>
	</item>
</channel>
</rss>

