• The offending line appears to be

    pageTracker._trackPageview(“/404.html?page=” + document.location.pathname + document.location.search + “&from=” + document.referrer);

    The “&from=” to be exact is not appreciated by the W3C validator.

Viewing 1 replies (of 1 total)
  • The problem here is that the javascript code is not escaped in comments. You need to escape the javascript with ‘<!– … –>’.

    Hotfix for this issue in V3.2.5

    Open wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php in a decent editor (not notepad.exe) and change those lines:

    Line 54:
    <script type="text/javascript" charset="utf-8"><!--

    Line 72:
    --></script>

    Line 115:
    echo "<script type=\"text/javascript\"><!-- setTimeout(function(){jQuery('#updatemessage').hide('slow');}, 3000); --></script>";

    Line 345:
    echo '<script type="text/javascript"><!--'."\n";

    Line 348:
    echo '--></script>'."\n";

    Line 349:
    echo '<script type="text/javascript"><!--'."\n";

    Line 359:
    echo '--></script>'."\n";

    Line 363:
    echo '--></script>'."\n";

    Line 370:
    echo '--></script>'."\n";

    Line 372:
    echo '<script type="text/javascript"><!--'."\n";

    Line 402:
    echo '--></script>'."\n";

    Line 418:
    echo '<script type="text/javascript"><!--'."\n";

    Line 420:
    echo '--></script>'."\n";

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Google Analytics for WordPress] google Analytics 3.2.5 doesn’t validate with XHTML strict’ is closed to new replies.