The plugin was adding unnecessary whitespace to
<a>markup of my site, like between the ” and the > here:
<a href="http://winkpress.com/privacy-policy/" >Privacy</a>
Not a big deal I know, but because of my specific circumstances it was causing problems, so to remove the extra space, I modified lines 1042 and 1043 of googleanalytics.php to this:
$matches = ($matches == ' ' || empty($matches)) ? '' : ' ' . trim($matches); return '<a ' . $matches . 'href="' . $matches . '//' . $matches . '"' . $matches . '>' . $matches . '</a>';
- The topic ‘[Plugin: Google Analytics for WordPress] Remove extra whitespace from markup of tracked outbound lin’ is closed to new replies.