[Plugin: Google Analytics for WordPress] Failed XHTML Strict validation
-
Hello, since I’ve declared my site as XHTML 1.0 Strict, when the Google Analytics plugin adds the tracking code to the blogroll links, it breaks the validation by inserting the target property in the anchor link along with the onclick javascript code.
It was easy to solve it, by simply replacing the hook:
$bookmarks[$i]->link_target .= $trackBit;
with
$bookmarks[$i]->link_rel .= $trackBit;
so the JS tracking code could be appended without hassle
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Google Analytics for WordPress] Failed XHTML Strict validation’ is closed to new replies.