Let me begin by explaining I have limited html understanding and have just begun using GWO. I am trying to set up a multivariate experiment for one of my ebook sales pages as the "Test Page" and the e-Junkie Thank You page as the "Conversion Page." After about 10 hours of major frustration, I had the brilliant idea of looking here.
I found 1 post (http://www.e-junkie.com/bb/topic/2797) that covered the topic. I must admit that after reading all the discussions in this post twice, I'm embarrassed to say that I still don't fully understand it.
My major problem is that in addition to the normal level of confusion of just getting into the Google website optimizer, there is the additional issue of two different domains that need to be addressed. Taking a line out of "Gone with the Wind"- I'm Relying on the Kindness of Strangers.
All I need is "the fish," -- it's too confusing to learn "how to fish." In other words, here is what I do know:
1. My conversion page is: https://www.e-junkie.com/ecom/rp.php
2. My test page is: http://www.best-family-photography-tips.com/baby-poses-book-description.html
3. I do know where the "Control Script," "Tracking Script," "Conversion Script," and the "Page Section Scripts" go.
What I don't know is what to do with the code required for using multiple domains (or subdomains; which on GWO, have the same exact directions as far as I can tell). These are their instructions:
To run experiments across multiple sub-domains, you'll need to take two steps: Customize your tracking scripts, and update your control script.
1) Update your control script
After modifying your tracking scripts, you'll need to also update your control script. Below are the steps to correctly modify the control script.
1. To perform the necessary customizations to your control script, add the same urchin.js customizations. The control script also needs urchin.js-style customization, regardless of whether you are using ga.js or urchin.js for your tracking scripts. For example:
<script>
_udn = ".example.com";
</script>
2. The customizations should go at the very top of the page, just before the control script:
<script>
... Contents of the control script ...
</script>
2) Customize your tracking code
Next, you'll have to modify your tracking code.
1. Add the customized tracking script. Add. the following line (highlighted) on the tracking code of all pages of your subdomain and main domain. Please note that the below example of the code is using the ga.js version of the tracking code.
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = gat.getTracker("UA-xxxxxx-x");
pageTracker._setDomainName(".example.com");
pageTracker._trackPageview("/xxxxxxxxxx/yyyy");
} catch(err) {}
</script>
2. Once you’ve finished making the customizations for your subdomains, the finished configuration should look like this:
<script>
_udn = ".example.com";
</script>
<script>
... Contents of the control script ...
</script>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = gat.getTracker("UA-xxxxxx-x");
pageTracker._setDomainName(".example.com");
pageTracker._trackPageview("/xxxxxxxxxx/yyyy");
} catch(err) {}
</script>
Google might just as well have used ancient hieroglyphics to explain it to me because I can't follow it at all. Not only don't I know where to put the code, but I'm not even sure what code to use. Can somebody please just tell me exactly what code to put where, so my experiment will pass the validation test?
Thanks to everyone for your help.
created
Jul '09
last reply
Jul '09
- 1
reply
- 1.2k
views
- 2
users
- 10
links