Hey Victor,
not really, as the content has to go through a WordPress filter to be able to do that. The r I’ve chosen NOT to use the js based addition of an onclick tag is because that disallows me the possibility of segmenting those clicks…
Cheers,
Joost
Anonymous User 388516
(@anonymized-388516)
Hi Joost,
I’m currently using Ultimate Google Analytics plugin (which is also server-based) and plan to dump it and use yours.
One thing that I can with UGA is to include outbound links in my sidebar widgets. All I need to do is to filter widget text by using UGA’s filter:
add_filter( 'widget_text', 'uga_filter' );
Does your plugin offer similar functionality? Is there a ready-made filter I can use for widget_text?
Thanks!
@victorhooi said “Now, obviously, we could do this just with a bit of JS at the end”
I’m looking at the general instructions on how to track outbound links with Google Analytics here, http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55527.
Do I understand correctly that I can manually add this bit – onClick=”recordOutboundLink(this, ‘Outbound Links’, ‘example.com’);return false;” – to my sidebar and widget links and they’ll then be tracked by my analytics account?
What’s considered a WordPress generated link (sorry if I am being a bit dumb). If I put a link in the text of a post or a page, is that WordPress generated? Or is it just the navigation, which would be mostly internal links, anyway? I am doing a site for a membership organisation and need to track clicks to the members sites. Thanks.
OK, I looked at the code output and the links I’ve added to have the tracking set up. Nice one.
What about links to email addresses? It’d be good to know how many people clicked to email the members. Can I manually add tracking code for that?
Anonymous User 388516
(@anonymized-388516)
Cool, version 4.0.2 now supports filtering sidebar widgets!
It also supports tracking mailto: links btw 🙂