<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Leo Fogarty .com &#187; Cross Domain Tracking</title>
	<atom:link href="http://www.leofogarty.com/tag/cross-domain-tracking/feed" rel="self" type="application/rss+xml" />
	<link>http://www.leofogarty.com</link>
	<description></description>
	<lastBuildDate>Sun, 22 Aug 2010 20:02:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cross Domain Tracking on Multiple Domains using Google Analytics</title>
		<link>http://www.leofogarty.com/search-engine-optimisation/web-analytics/google-analytics/cross-domain-tracking-on-multiple-domains-using-google-analytics.html</link>
		<comments>http://www.leofogarty.com/search-engine-optimisation/web-analytics/google-analytics/cross-domain-tracking-on-multiple-domains-using-google-analytics.html#comments</comments>
		<pubDate>Sat, 19 Sep 2009 22:21:22 +0000</pubDate>
		<dc:creator>Leo</dc:creator>
				<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Cross Domain Tracking]]></category>
		<category><![CDATA[I-HCI]]></category>
		<category><![CDATA[IQ Content]]></category>
		<category><![CDATA[Multiple Domains]]></category>
		<category><![CDATA[Niamh Phelan]]></category>

		<guid isPermaLink="false">http://www.leofogarty.com/?p=715</guid>
		<description><![CDATA[<a href="http://www.leofogarty.com/search-engine-optimisation/web-analytics/google-analytics/cross-domain-tracking-on-multiple-domains-using-google-analytics.html"><img align="left" hspace="5" width="150" src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyNTMzOTI4MzAzMjAmcHQ9MTI1MzM5Mjg*NzQ*MyZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm9mPTA=.gif" class="alignleft wp-post-image tfe" alt="" title="" /></a>Well I decided to blow the dust of the blog, it&#8217;s been a whole 2 weeks since I last posted, this is a lifetime in the online community. Well the reason I havent been blogging is that I&#8217;ve been busy attending events and trying to apply the knowledge I&#8217;ve learnt to the affiliate marketing/make money [...]]]></description>
			<content:encoded><![CDATA[<p>Well I decided to blow the dust of the blog, it&#8217;s been a whole 2 weeks since I last posted, this is a lifetime in the online community. Well the reason I havent been blogging is that I&#8217;ve been busy attending events and trying to apply the knowledge I&#8217;ve learnt to the affiliate marketing/make money online world. The next couple of posts will be about what I picked up.</p>
<h1>IxDA Industry Session at Irish HCI Conference &#8211; 17th-18th September 2009, Trinity College, Dublin, Ireland.</h1>
<p>So this was the first event I attended which was held over two days, I have to admit I really was only interested in attending a couple of sessions mainly the ones related to web analytics and search, and I have to say I defintiely was happy with the knowledge shared at the event.</p>
<h2>Web Analytics</h2>
<p>First up was <a href="http://www.iqcontent.com/about/team/niamhphelan/">Niamh Phelan</a> from <a href="http://www.iqcontent.com">IQ content</a> discussing how to use Google Analytics, decide on the correct kpi&#8217;s/metrics for your business, establish your goals and tweak your website accordingly. Unfortunately I wasn&#8217;t able to find Niamh&#8217;s presentation online but I was able to find a presentation she did previously that shares a lot of the slides:<br />
<center><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.11NXC/bT*xJmx*PTEyNTMzOTI4MzAzMjAmcHQ9MTI1MzM5Mjg*NzQ*MyZwPTEwMTkxJmQ9c3NfZW1iZWQmZz*yJm9mPTA=.gif" />
<div style="width:425px;text-align:left" id="__ss_522357"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/laurenceveale/ei-presentation-on-analytics" title="Ei Presentation on analytics">Ei Presentation on analytics</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=eipresentation-1216657833632251-9&#038;stripped_title=ei-presentation-on-analytics" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=eipresentation-1216657833632251-9&#038;stripped_title=ei-presentation-on-analytics" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/laurenceveale">Lar Veale</a>.</div>
</div>
<p></center></p>
<p>Niamh was great and very helpful, she even was able to give me some advice after the event. One of the areas I was interested in was cross domain tracking on multiple domains and how to implement it.<br />
<H3>Why as an Affiliate should I care about Cross Domain tracking?</H3><br />
Most successful affiliates will agree that in order to become successful you must think about longevity. The best way to do this is as <a href="http://www.leofogarty.com/affiliate-marketing/an-interview-with-fraser-edwards-from-affiliateblog-co-uk.html">Fraser Edwards recommended is to build a brand</a>. A good example of this in the industry would be Doug Scott&#8217;s <a href="http://www.carrentals.co.uk">carrentals.co.uk</a> targeting multiple countries using multiple domains. Ok, so what has this got to do with Cross Domains? Well once you&#8217;ve established your brand in one country or index, just as we scale our ppc campaigns when we&#8217;ve found a successful model, we do the same with our websites based on the markets where there is a demand for the products for which we&#8217;re an affiliate i.e. .com (targeting U.S. market), .co.uk (targeting U.K. market). When we&#8217;ve established a couple of country specific sites it is useful to track them as one brand, especially if the sites are heavily interlinked.</p>
<p><H3>How to Implement Cross Domain Tracking on Multiple Domains</H3><br />
Niamh was able to point me to the post on IQ&#8217;s blog which deals with <a href="http://www.iqcontent.com/blog/2009/08/google-analytics-automatic-tracking-across-multiple-domains/">cross domain tracking</a>.</p>
<p><H3>The scenario</H3></p>
<p>A user searches Google for “cheap widgets”. Your site, www.CheapWidgets.com, appears top of the search results, so the user decides to click on the link to your site. While browsing around, they click a link that leads to your insightful widget blog which is located at blog.CheapWidgets.com.</p>
<p>With the default Google Analytics setup, www.CheapWidgets.com will be seen as a referrer to your blog subdomain and a new set of cookies will be generated for that user, losing sight of information such as the referring site (Google) and the keywords that they used to find you (”cheap widgets”).</p>
<p>Ideally, this information would be preserved across all subdomains and any relevant third party domains that you own.<br />
<H3>The solution</H3></p>
<p>Google Analytics does provide a solution for this, but it’s a bit cumbersome:</p>
<p>Step 1: Modify your tracking code to include a couple of extra functions (which is simple enough).<br />
Step 2: Manually tag each link to one of your subdomains or third party domains with a JavaScript function (which is annoying).<br />
Step 3: Remember to tag each link that points to any of your domains (which is a burden). This is something that could very easily be overlooked.</p>
<p><H3>The real solution</H3></p>
<p>Niamh and the guys at IQ have produced a script that will automate this process. It automatically tags links to a set of domains that you configure inside the script.</p>
<p>The first thing you need to do is update the tracking code across each of your domains and subdomains.<br />
Updated tracking code</p>
<pre class="brush: php">
&lt;script type=&quot;text/javascript&quot;&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;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    var pageTracker = _gat._getTracker(&quot;UA-xxxxx-x&quot;); // Replace with your own account number
    pageTracker._setDomainName(&quot;.yourdomain.com&quot;); // Don&#039;t forget to update this
    pageTracker._setAllowLinker(true);
    pageTracker._setAllowHash(false);
    pageTracker._trackPageview();
&lt;/script&gt;
</pre>
<p>The value of _setDomainName should be the root of the domain you’re installing the code on. So, the value for both blog.CheapWidgets.com and www.CheapWidgets.com would be</p>
<blockquote><p>   pageTracker._setDomainName(&#8220;.CheapWidgets.com&#8221;);</p></blockquote>
<p>The next and final step is to <a href="http://www.iqcontent.com/js/xdomain.js">download the script</a>, update the domains that you would like to track and include it on your page.<br />
Sample configuration</p>
<blockquote><p>
var domains_to_track =<br />
[<br />
    'blog.yourdomain.com',<br />
    'wiki.yourdomain.com',<br />
    '*.someotherdomain.com'<br />
];
</p></blockquote>
<p>Include the script with the following code (it must appear in the body, just before your tracking code):</p>
<pre class="brush: php">
&lt;script src=&quot;/path/to/js/xdomain.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&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;/script&gt;</pre>
<img src="http://www.leofogarty.com/?ak_action=api_record_view&id=715&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.leofogarty.com/search-engine-optimisation/web-analytics/google-analytics/cross-domain-tracking-on-multiple-domains-using-google-analytics.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
