I am trying to implement some split testing on my site using google's WSO service. I copied all the code into my joomla articles as instructed on google's site and this tutorial.
I am having problems validating the pages though. The tutorial I just mentioned has a note about patching joomla versions previous to 1.5.5 or 1.5.6, I am using 1.5.10. I downloaded the patch mentioned and verified that is indeed included with my version of joomla. The problem is that src definitions are still getting the / inserted by the SEF plugin. I disabled the plugin and the pages validate just fine. The problem is this:
Code: Select all
if(typeof(_gat)!='object')document.write('<sc'+'ript src="/http'+
Code: Select all
if(typeof(_gat)!='object')document.write('<sc'+'ript src="http'+
Code: Select all
$protocols = '[a-zA-Z0-9]+:';
$regex = '#(src|href)="(?!/|'.$protocols.'|\#|\')([^"]*)"#m';
Alex