<?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"
	>
<channel>
	<title>Comments on: Google Website Optimizer and Analytics Bugfix</title>
	<atom:link href="http://www.prusak.com/google-website-optimizer-and-analytics-bugfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.prusak.com/google-website-optimizer-and-analytics-bugfix/</link>
	<description>Online Since 1996</description>
	<pubDate>Wed, 03 Dec 2008 08:43:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Yesak</title>
		<link>http://www.prusak.com/google-website-optimizer-and-analytics-bugfix/#comment-18419</link>
		<dc:creator>Yesak</dc:creator>
		<pubDate>Mon, 12 May 2008 12:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.prusak.com/archives/2007-06-13/google-website-optimizer-and-analytics-bugfix/#comment-18419</guid>
		<description>Hello,
thank you for this script, it seems to be very cool :) 
Does it work with the new GATC : GA.JS ?
Best Regards,
Y</description>
		<content:encoded><![CDATA[<p>Hello,<br />
thank you for this script, it seems to be very cool <img src='http://www.prusak.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Does it work with the new GATC : GA.JS ?<br />
Best Regards,<br />
Y</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J</title>
		<link>http://www.prusak.com/google-website-optimizer-and-analytics-bugfix/#comment-18011</link>
		<dc:creator>J</dc:creator>
		<pubDate>Tue, 26 Feb 2008 19:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.prusak.com/archives/2007-06-13/google-website-optimizer-and-analytics-bugfix/#comment-18011</guid>
		<description>Eli,
the getcombo function will return the combo information for the first experiment in the cookie. If you are running multiple GWO tests that were hit upon, the utmx cookie will contain this information and grabbing the first may return the combo information for the wrong experiment.  

Example of google utmx cookie with 2 tests. The experiment id has been hidden and replaced by "xxxxxtest1" and "xxxxxtest2" in the below example. "test1" was an experiment where I visited Variation 1 and "test2" was an experiment where I visited Variation 2:
__utmx
53881888.0000103110xxxxxtest1:2:1.0000097245xxxxxtest2:1:2

In order to grab the correct combo, you need to pass into the function the experiment id that you are looking for combo information for. You also need to split the cookie on "." to split up the different experiments - then you can split the data on ":". I am not very good with javascript but the below function works for me. NOTE: It will NOT work if your multivariate experiment also has multiple sections having variations (it will only work if you have one section with multiple variations). For the multi-section/multi-variation to work, the code that fixed the bug in the getcombo function would have to be adapted to this function and you'd have to pass into this function both an experiment id and the number of variations you have in each section. I hope this helps someone but please use this at your own risk and please excuse my lack of Javascript knowledge - hopefully a real javascript programmer can pull this all together &#38; post a better function that works for all scenarios.

function multiexperiment_combo(experimentid)
{
	if (document.cookie.indexOf("__utmx=") != -1)
	{
		var utmx_cookie_value = readCookie('__utmx');  
		var cookie_data_array = utmx_cookie_value.split('.');
		for(i=0; i0)
			    {
			      return combination_id;
			    }else
			      return 0;
		      }
		   } 
		}	
		
	}
}

To use this function, follow all installation instructions for using the getcombo function. Then modify gwo_analytics_integration.js and add this new function. On your Test page where you would normally call the getcombo function - just call multiexperiment_combo("xxxxxtest1"); function instead. Replace "xxxxxtest1" with your actual experiment id given by google when you set up your experiment. If you don't know your experiment id, look at your conversion page code snippet given by google for the line that looks like this:

urchinTracker("/xxxxxtest1/goal");</description>
		<content:encoded><![CDATA[<p>Eli,<br />
the getcombo function will return the combo information for the first experiment in the cookie. If you are running multiple GWO tests that were hit upon, the utmx cookie will contain this information and grabbing the first may return the combo information for the wrong experiment.  </p>
<p>Example of google utmx cookie with 2 tests. The experiment id has been hidden and replaced by &#8220;xxxxxtest1&#8243; and &#8220;xxxxxtest2&#8243; in the below example. &#8220;test1&#8243; was an experiment where I visited Variation 1 and &#8220;test2&#8243; was an experiment where I visited Variation 2:<br />
__utmx<br />
53881888.0000103110xxxxxtest1:2:1.0000097245xxxxxtest2:1:2</p>
<p>In order to grab the correct combo, you need to pass into the function the experiment id that you are looking for combo information for. You also need to split the cookie on &#8220;.&#8221; to split up the different experiments - then you can split the data on &#8220;:&#8221;. I am not very good with javascript but the below function works for me. NOTE: It will NOT work if your multivariate experiment also has multiple sections having variations (it will only work if you have one section with multiple variations). For the multi-section/multi-variation to work, the code that fixed the bug in the getcombo function would have to be adapted to this function and you&#8217;d have to pass into this function both an experiment id and the number of variations you have in each section. I hope this helps someone but please use this at your own risk and please excuse my lack of Javascript knowledge - hopefully a real javascript programmer can pull this all together &amp; post a better function that works for all scenarios.</p>
<p>function multiexperiment_combo(experimentid)<br />
{<br />
	if (document.cookie.indexOf(&#8221;__utmx=&#8221;) != -1)<br />
	{<br />
		var utmx_cookie_value = readCookie(&#8217;__utmx&#8217;);<br />
		var cookie_data_array = utmx_cookie_value.split(&#8217;.');<br />
		for(i=0; i0)<br />
			    {<br />
			      return combination_id;<br />
			    }else<br />
			      return 0;<br />
		      }<br />
		   }<br />
		}	</p>
<p>	}<br />
}</p>
<p>To use this function, follow all installation instructions for using the getcombo function. Then modify gwo_analytics_integration.js and add this new function. On your Test page where you would normally call the getcombo function - just call multiexperiment_combo(&#8221;xxxxxtest1&#8243;); function instead. Replace &#8220;xxxxxtest1&#8243; with your actual experiment id given by google when you set up your experiment. If you don&#8217;t know your experiment id, look at your conversion page code snippet given by google for the line that looks like this:</p>
<p>urchinTracker(&#8221;/xxxxxtest1/goal&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eli Roth</title>
		<link>http://www.prusak.com/google-website-optimizer-and-analytics-bugfix/#comment-17975</link>
		<dc:creator>Eli Roth</dc:creator>
		<pubDate>Sun, 13 Jan 2008 20:29:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.prusak.com/archives/2007-06-13/google-website-optimizer-and-analytics-bugfix/#comment-17975</guid>
		<description>I would like to know how to use the getcombo function when i have a few GWO tests running at once?</description>
		<content:encoded><![CDATA[<p>I would like to know how to use the getcombo function when i have a few GWO tests running at once?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
