<?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: How to track Social Media Users with Google Analytics</title>
	<atom:link href="http://www.timnash.co.uk/12/2007/social-media-tracking-ga/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/</link>
	<description>The Stuff Consultant</description>
	<lastBuildDate>Wed, 26 Oct 2011 12:40:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: BJ Wright</title>
		<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/comment-page-1/#comment-3617</link>
		<dc:creator>BJ Wright</dc:creator>
		<pubDate>Mon, 12 May 2008 21:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.venture-skills.co.uk/2007/12/22/social-media-tracking-ga/#comment-3617</guid>
		<description>Thanks for the code, I didn&#039;t realize you could do this? We recently ran a campaign in StumbleUpon.com and I would like to exclude this traffic from my original website profile within Google Analytics. Would this be possible using similiar code?</description>
		<content:encoded><![CDATA[<p>Thanks for the code, I didn&#8217;t realize you could do this? We recently ran a campaign in StumbleUpon.com and I would like to exclude this traffic from my original website profile within Google Analytics. Would this be possible using similiar code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Are Social Users Different? &#171; The Venture Skills Blog</title>
		<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/comment-page-1/#comment-3606</link>
		<dc:creator>Are Social Users Different? &#171; The Venture Skills Blog</dc:creator>
		<pubDate>Sun, 13 Jan 2008 12:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.venture-skills.co.uk/2007/12/22/social-media-tracking-ga/#comment-3606</guid>
		<description>[...] SuccessHReview a CCK example part 1 - ContemplateCCK &amp; Views the ultimate combination - part 2How to track Social Media Users with Google AnalyticsCCK &amp; Views the ultimate combination - part 3Running an ISO as Virtual CD&#039;s in [...]</description>
		<content:encoded><![CDATA[<p>[...] SuccessHReview a CCK example part 1 &#8211; ContemplateCCK &amp; Views the ultimate combination &#8211; part 2How to track Social Media Users with Google AnalyticsCCK &amp; Views the ultimate combination &#8211; part 3Running an ISO as Virtual CD&#8217;s in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TL</title>
		<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/comment-page-1/#comment-3616</link>
		<dc:creator>TL</dc:creator>
		<pubDate>Sat, 05 Jan 2008 22:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.venture-skills.co.uk/2007/12/22/social-media-tracking-ga/#comment-3616</guid>
		<description>Hey there - Thanks so much for sharing this code. Just got it working and couldn&#039;t be happier. I made a few changes though and wanted to share. First, I think of the campaign variables a bit differently, and set them as follows... pageTracker._setCampNameKey(&#039;&quot;.$url.&quot;&#039;); pageTracker._setCampMediumKey(&#039;socialmedia&#039;); pageTracker._setCampSourceKey(&#039;&quot;.$domain.&quot;&#039;); Basically, I&#039;m treating &quot;socialmedia&quot; as the medium and the domain as the source, which maps a little more closely to the definitions in the help docs... &quot;Use utm_source to identify a search engine, newsletter name, or other source. Use utm_medium to identify a medium such as email or cost-per- click. &quot; I also had to test on $_SERVER[&#039;HTTP_REFERER&#039;] with the following... if(isset($_SERVER[&#039;HTTP_REFERER&#039;])) ... as my hosting environment throws an error if it isn&#039;t set. I&#039;m also stripping off the www from the referrer if appropriate so I don&#039;t have to include both www and non-www versions of the domains in the array... if (substr($domain, 0, 4) == &quot;www.&quot;){ $domain = substr_replace($domain, &#039;&#039;, 0, 4); } Hope that&#039;s useful or interesting to someone. Again, thanks for sharing. TL P.S. Here&#039;s the whole shebang... if(isset($_SERVER[&#039;HTTP_REFERER&#039;])){ $url = $_SERVER[&#039;HTTP_REFERER&#039;]; // Get referer string - remember not accurate! $domain = parse_url($url, PHP_URL_HOST); // Set domain as the Host of the referring URL if (substr($domain, 0, 4) == &quot;www.&quot;){ $domain = substr_replace($domain, &#039;&#039;, 0, 4); } /*Select social media sites to track from*/ $social = array(&quot;stumbleupon.com&quot;,&quot;digg.com&quot;,&quot;mixx.com&quot;,&quot;sphinn.com&quot;,&quot;del.icio.us&quot;);//Set Social sites array /*Set campaign if a social media site referal*/ if (array_search($domain,$social)) { //search the array echo &quot; pageTracker._setCampNameKey(&#039;&quot;.$url.&quot;&#039;); pageTracker._setCampMediumKey(&#039;socialmedia&#039;); pageTracker._setCampSourceKey(&#039;&quot;.$domain.&quot;&#039;); pageTracker._setCampNOKey(&#039;ga_nooverride&#039;); &quot;; //add campaign details } }</description>
		<content:encoded><![CDATA[<p>Hey there &#8211; Thanks so much for sharing this code. Just got it working and couldn&#8217;t be happier. I made a few changes though and wanted to share. First, I think of the campaign variables a bit differently, and set them as follows&#8230; pageTracker._setCampNameKey(&#8216;&#8221;.$url.&#8221;&#8216;); pageTracker._setCampMediumKey(&#8216;socialmedia&#8217;); pageTracker._setCampSourceKey(&#8216;&#8221;.$domain.&#8221;&#8216;); Basically, I&#8217;m treating &#8220;socialmedia&#8221; as the medium and the domain as the source, which maps a little more closely to the definitions in the help docs&#8230; &#8220;Use utm_source to identify a search engine, newsletter name, or other source. Use utm_medium to identify a medium such as email or cost-per- click. &#8221; I also had to test on $_SERVER['HTTP_REFERER'] with the following&#8230; if(isset($_SERVER['HTTP_REFERER'])) &#8230; as my hosting environment throws an error if it isn&#8217;t set. I&#8217;m also stripping off the www from the referrer if appropriate so I don&#8217;t have to include both www and non-www versions of the domains in the array&#8230; if (substr($domain, 0, 4) == &#8220;www.&#8221;){ $domain = substr_replace($domain, &#8221;, 0, 4); } Hope that&#8217;s useful or interesting to someone. Again, thanks for sharing. TL P.S. Here&#8217;s the whole shebang&#8230; if(isset($_SERVER['HTTP_REFERER'])){ $url = $_SERVER['HTTP_REFERER']; // Get referer string &#8211; remember not accurate! $domain = parse_url($url, PHP_URL_HOST); // Set domain as the Host of the referring URL if (substr($domain, 0, 4) == &#8220;www.&#8221;){ $domain = substr_replace($domain, &#8221;, 0, 4); } /*Select social media sites to track from*/ $social = array(&#8220;stumbleupon.com&#8221;,&#8221;digg.com&#8221;,&#8221;mixx.com&#8221;,&#8221;sphinn.com&#8221;,&#8221;del.icio.us&#8221;);//Set Social sites array /*Set campaign if a social media site referal*/ if (array_search($domain,$social)) { //search the array echo &#8221; pageTracker._setCampNameKey(&#8216;&#8221;.$url.&#8221;&#8216;); pageTracker._setCampMediumKey(&#8216;socialmedia&#8217;); pageTracker._setCampSourceKey(&#8216;&#8221;.$domain.&#8221;&#8216;); pageTracker._setCampNOKey(&#8216;ga_nooverride&#8217;); &#8220;; //add campaign details } }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Hatch&#8217;s Blog / links for 2007-12-30</title>
		<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/comment-page-1/#comment-3610</link>
		<dc:creator>Steven Hatch&#8217;s Blog / links for 2007-12-30</dc:creator>
		<pubDate>Sun, 30 Dec 2007 05:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.venture-skills.co.uk/2007/12/22/social-media-tracking-ga/#comment-3610</guid>
		<description>[...] How to track Social Media Users with Google Analytics &#8220;Google Analytics offers a way to track marketing campaigns by giving them unique markers, these are normally part of a URL for example example.com?utm_campaign=mycampaign &amp;utm_medium=banner&amp;utm_source=otherdomain.com&#8221; (tags: Google analytics socialmedia statistics) Book Mark it-&gt; del.icio.us &#124; Reddit &#124; Slashdot &#124; Digg &#124; Facebook &#124; Technorati &#124; Google &#124; StumbleUpon &#124; Window Live &#124; Tailrank &#124; Furl &#124; Netscape &#124; Yahoo &#124; BlinkList Sphere: Related Content [...]</description>
		<content:encoded><![CDATA[<p>[...] How to track Social Media Users with Google Analytics &#8220;Google Analytics offers a way to track marketing campaigns by giving them unique markers, these are normally part of a URL for example example.com?utm_campaign=mycampaign &#38;utm_medium=banner&#38;utm_source=otherdomain.com&#8221; (tags: Google analytics socialmedia statistics) Book Mark it-&gt; del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Netscape | Yahoo | BlinkList Sphere: Related Content [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bloggers Digest - 12/28/2007 - Get Elastic Ecommerce Blog</title>
		<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/comment-page-1/#comment-3615</link>
		<dc:creator>Bloggers Digest - 12/28/2007 - Get Elastic Ecommerce Blog</dc:creator>
		<pubDate>Fri, 28 Dec 2007 20:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.venture-skills.co.uk/2007/12/22/social-media-tracking-ga/#comment-3615</guid>
		<description>[...] Venture Skills shares a social media tracking hack for Google Analytics. [...]</description>
		<content:encoded><![CDATA[<p>[...] Venture Skills shares a social media tracking hack for Google Analytics. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Links 2007-12-26</title>
		<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/comment-page-1/#comment-3614</link>
		<dc:creator>Links 2007-12-26</dc:creator>
		<pubDate>Fri, 28 Dec 2007 17:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.venture-skills.co.uk/2007/12/22/social-media-tracking-ga/#comment-3614</guid>
		<description>[...] How to track Social Media Users with Google Analytics &#8220;One of the questions we are often asked is how we track various social media sites users and their interaction with sites the answer is in a variety of ways but here is just one of the techniques we use with Google Analytics.&#8221; [...]</description>
		<content:encoded><![CDATA[<p>[...] How to track Social Media Users with Google Analytics &#8220;One of the questions we are often asked is how we track various social media sites users and their interaction with sites the answer is in a variety of ways but here is just one of the techniques we use with Google Analytics.&#8221; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francois Harris</title>
		<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/comment-page-1/#comment-3613</link>
		<dc:creator>Francois Harris</dc:creator>
		<pubDate>Fri, 28 Dec 2007 12:50:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.venture-skills.co.uk/2007/12/22/social-media-tracking-ga/#comment-3613</guid>
		<description>Hey Tim, Nice information man, I will be putting it to some good use soon!</description>
		<content:encoded><![CDATA[<p>Hey Tim, Nice information man, I will be putting it to some good use soon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Nash</title>
		<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/comment-page-1/#comment-3612</link>
		<dc:creator>Tim Nash</dc:creator>
		<pubDate>Fri, 28 Dec 2007 11:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.venture-skills.co.uk/2007/12/22/social-media-tracking-ga/#comment-3612</guid>
		<description>@jesse sorry for the delay you were caught in the spam filter ;) Yes just edit the line to include the domains you wish to track users from, I included a few to get you started.</description>
		<content:encoded><![CDATA[<p>@jesse sorry for the delay you were caught in the spam filter <img src='http://www.timnash.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Yes just edit the line to include the domains you wish to track users from, I included a few to get you started.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Nash</title>
		<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/comment-page-1/#comment-3609</link>
		<dc:creator>Tim Nash</dc:creator>
		<pubDate>Fri, 28 Dec 2007 10:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.venture-skills.co.uk/2007/12/22/social-media-tracking-ga/#comment-3609</guid>
		<description>Cheers Glen, the code is pretty easy to understand and once you start you will find more and more things to do with campaigns</description>
		<content:encoded><![CDATA[<p>Cheers Glen, the code is pretty easy to understand and once you start you will find more and more things to do with campaigns</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glen Allsopp</title>
		<link>http://www.timnash.co.uk/12/2007/social-media-tracking-ga/comment-page-1/#comment-3608</link>
		<dc:creator>Glen Allsopp</dc:creator>
		<pubDate>Thu, 27 Dec 2007 14:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.venture-skills.co.uk/2007/12/22/social-media-tracking-ga/#comment-3608</guid>
		<description>Great post and thanks for the detailed information, will definitely look into this one further</description>
		<content:encoded><![CDATA[<p>Great post and thanks for the detailed information, will definitely look into this one further</p>
]]></content:encoded>
	</item>
</channel>
</rss>

