Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm looking for a link tracker plugin that rewrites links in my new posts from "http://yahoo.com/" to something like "http://t.barrycarter.info/linktracker.pl?http://yahoo.com/", where linktracker.pl is a redirecting Perl script that I'd have written on t.barrycarter.info.

My log files would then show an access to "http://t.barrycarter.info/linktracker.pl?http://yahoo.com/", so I'd know someone clicked on an offsite link.

Notes:

  • I want to continue writing links the way I do now. I don't want to have to do "[plugin link href='http://yahoo.com/']" or anything.

  • Ideally, this plugin would scan existing posts and rewrite links in those as well.

  • I realize rewriting to "http://t.barrycarter.info/linktracker.pl?http://yahoo.com/" is a bad idea, because colons and slashes in the yahoo URL will be escaped. I just used that as an example. In reality, the link tracker plugin may change it to something like "http://t.barrycarter.info/linktracker.pl?aHR0cDovL3lhaG9vLmNvbS8=" where "aHR0cDovL3lhaG9vLmNvbS8=" is the MIME encode of "http://yahoo.com/". Then, my linktracker.pl script would MIME-uncode and redirect the browser.

  • I've installed WP-Click-Tracker, which supposedly does this for new and existing pages, but can't figure out how to configure it. It's possible that I read the description wrong and that it doesn't do what I want at all.

share|improve this question
If I edited the question to ask "how can I modify the WP-Click-Tracker plugin to do what I want", would that be considered on-topic? – barrycarter Jan 4 at 18:00

closed as too localized by toscho Feb 9 at 11:58

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.