When I try to validate my test it only validate 3/4. There isn't a problem with the clean URL.
My code displays in header and at the bodem, but the validation code in the head but not immediately after the opening tag.

A page: http://www.robberechts.be/cube-rolluikkast
B page: http://www.robberechts.be/cube_jaloeziedeurkast

Can someone please tell me how I get the code immediately after the opening tag.
I'm a designer and not very good with code. Sow please talk is small words.

Lot's of thanks - Sanne

Comments

marco88’s picture

I think I got the same problem.

Subscribing.
Marc.

marco88’s picture

Hi there,

I think I spotted the problem:

    } elseif ($variation_page) {
      drupal_add_js('
        /* Start Google Website Optimizer Variation Tracking Script code TOTO */
        '."\n//--><!]]>\n".'</script>'. $test->variation_tracking_script .'<script type="text/javascript">'."\n<!--//--><![CDATA[//><!--\n".'
        /* End Google Website Optimizer Variation Tracking Script code */
        ', 'inline', 'header', FALSE);  <=== used to say footer instead of header
    }
  }

After replacing footer by header as per above it seems to work and accept the tracker code for A/B too.

Marc.

S Garan’s picture

Version: 6.x-1.x-dev » 6.x-1.3
Category: support » bug
Priority: Normal » Major

We are using the 6.x-1.3 version of the module and we have the same problem. When we validate the pages, google returns the following messages "Control script not found. Please copy/paste the control script below or return to step 1 to fix the URL.", "Tracking script not detected on variation page" and "Tracking script not detected on conversion page". Drupal does not insert the google code immediately after the opening tag as google has specified. The code is inserted further down in the code. The follow tags are above the inserted code:


head

THIS IS WHERE THE GOOGLE CODE IS SUPPOSED TO BE INSERTED **************************************************

meta ....

title

meta ....

link ...

link ...

link ...

script ....

script ....

script ....


THIS IS WHERE THE GOOGLE CODE IS INSERTED *************************************************************

-1){var j=c.indexOf(';',i);return escape(c.substring(i+n. length+1,j<0?c.length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash; d.write('')})(); utmx("url",'A/B'); As a result of this bug, our A/B testing has stopped and we very much need to get this bug fixed. Thanks, Steve
blaiz’s picture

Subscribe

bwinett’s picture

S Garan’s picture

What does your comment mean?? What should I subscribe too?

S Garan’s picture

We are having the same issue described in ticket #1000386. And as of April 25th I have not seen a fix for this issue.

AussiePaul’s picture

Version: 6.x-1.3 » 7.x-1.4

Hello
I'm using version 7x-1.4 and it seems that the control page still will not validate.
Are the owners of this module trying to fix this.
I seen two ways to get around this fault but one was incompatible with my script and the other was way to complex and information lacking for me to understand.
Also since I upgraded to this current version I now also get an error saying
"An illegal choice has been detected. Please contact the site administrator".
I hope the script writers can remedy this as i am desperate to use google optimizer.

Thank you
Paul

yannisc’s picture

AussiePaul, could you provide more info?

Have you cleared cache after enabling the test?

Could you provide the site url and/or admin user/pass to my email to check?

AussiePaul’s picture

Hello
The error and website control page are
http://www.glowinthedark.net.au/uv-glow-face-and-body-paint
Control script not found. Please copy/paste the control script below or return to step 1 to fix the URL.
I tried clearing all cache, but it didn't help.
The header part of the script is not where it should be.
Thanks for your help...
Paul

yannisc’s picture

Paul,

Unfortunately, I cannot replicate the problem. A/B Testing is working for me and Google Website Optimizer validates all scripts.

Are you sure you have the proper setup?

AussiePaul’s picture

Hello
Sorry for taking so long to respond, but have had ISP problems.
Would it help if I uninstall the module, then reinstall the latest version?
Could it be another module causing the problem?
I'm not sure what you mean about correct setup.

Paul

yannisc’s picture

AussiePaul, I think the problem lies on the way you've put the scripts in the module. Make sure that you follow Google's instructions and that you copy-paste the right scripts in the right places.

AussiePaul’s picture

Ok I figured out the problem.
In the control page is was using the name I called the page for example, for example "products" but when i changed the name of the control page to node/7 the control page was validated.
Anyone else whom has a problem should check to see if using the n/* instead of the page name will work.
Thanks for your input as I really needed this working because i know the importance of website optimization.
Thank you :-)

yannisc’s picture

Status: Active » Closed (fixed)

I'm glad it worked for you!