Outbound Links Tracking error onclick event
-
Hi,
I have Social buttons with an onclick event which open link in a new window to share my post.
If Outbound links tracking is selected it inject this code inside the event:
javascript:_gaq.push(['_trackEvent','outbound-article','http://www.facebook.com'])so social button it opens in a new tab instead of a new window.
I paste here the full code it will generate:
onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.facebook.com']);window.open("https://www.facebook.com/sharer/sharer.php?s=100&p[url]=http://www.mysite.com', 'newwindow', 'width=600, height=450'); return false;"https://wordpress.org/plugins/google-analytics-for-wordpress/
The topic ‘Outbound Links Tracking error onclick event’ is closed to new replies.