Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Google Website Optimizer Code

  1. #1
    Contour is offline Junior Member
    Join Date
    Apr 2006
    Posts
    22

    Default Google Website Optimizer Code

    Has anyone set up the Google Website Optimizer control script and tracking scripts, so that either an A/B test or Multi-Variate test can be performed on the page content within a template?

    I have successfully set up several tests to track variants in my template, where the variants affect every page on the site.

    Now, I'm trying to test two versions of my home page - which is a topic inserted into the template. I can't figure out where to put the control group script (which page) and if any modifications are required. I'm using ASPDNSF ML v8.1 C# with full code.

    The Google Control script looks like this:
    <!-- Google Website Optimizer Control Script -->
    <script>
    function utmx_section(){}function utmx(){}
    (function(){var k='2971641902',d=document,l=d.location,c=d.cookie; function f(n){
    if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return c.substring(i+n.
    length+1,j<0?c.length:j)}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;
    d.write('<sc'+'ript src="'+
    'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com'
    +'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utm xx='+(xx?xx:'')+'&utmxtime='
    +new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1 )):'')+
    '" type="text/javascript" charset="utf-8"></sc'+'ript>')})();
    </script><script>utmx("url",'A/B');</script>
    <!-- End of Google Website Optimizer Control Script -->

    It's supposed to be inserted before the header tag, but has to kick in prior to the template.

    Any help is much appreciated.

    Jeff

  2. #2
    Contour is offline Junior Member
    Join Date
    Apr 2006
    Posts
    22

    Default

    Anyone?

    Any developers who can help with the coding (placement of the scripts and any required adjustments to make it work) - Please contact me. Maybe we can work out an hourly rate.

    Jeff