Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I updated to 2.9.2 today and the plugin still works here aka the tracking code is still included in the source of each page at the bottom.

    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 2 replies - 1 through 2 (of 2 total)