Reported in http://forum.piwik.org/read.php?2,71966
Upon further investigation, webkit doesn't track outlinks (whether the tracking code is in head or body) unless the anchor has a target to open in a new window/tab. Tracking piwik.js execution, the request is created but webkit suppresses the request. (Security feature?)
There is already an open ticket in webkit's trac, and apparently also affects GA (so, we are not alone), but I've opened a new one with more details and an example:
(In [3939]) refs #409:
refs #1984:
refs #2078 Webkit bug ("Failed to load resource") when link target is the current window/tab
if ((new RegExp('WebKit')).test(navigatorAlias.userAgent)
&& (!sourceElement.target.length || sourceElement.target === '_self')
&& linkType === 'link')
{
// open outlink in a new window
sourceElement.target = '_blank';
}
(In [3940]) refs #2078
Updated FAQ "Piwik doesn't track Downloads and Outlinks on my website.".