[Plugin: Google Analytics for WordPress] Facebook SexyBookMark problem
-
I use GA plugin version 3.2.5 and SexyBookmarks plugin version 3.2.3.
When I share a Facebook link within SexyBookmarks then I get a wrong onclick TAG for the Facebook share link like this one:
onclick=”javascript:pageTracker._trackPageview(‘/outbound/article/www.facebook.com’); window.open(this.href,”sharer’,’toolbar=0,status=0,width=626,height=436′);
In the onclick from SexyBookmark plugin places the GA plugin a minor fault, namely:
(this.href,”sharer’The ” causes now a javascript problem and I hope someone knows the answer for the lines 471 and 472 (from googleanalytics.php):
if (preg_match(‘/onclick=[\’\”](.*?)[\’\”]/i’, $matches[4]) > 0) {
$matches[4] = preg_replace(‘/onclick=[\’\”](.*?)[\’\”]/i’, ‘onclick=”‘ . $coolBit .’ $1″‘, $matches[4]);
}
- The topic ‘[Plugin: Google Analytics for WordPress] Facebook SexyBookMark problem’ is closed to new replies.