Outbound Click Tracker

I just released an outbound click tracker. This is based on some work I did on this a long time ago, along with My old Friend Phil Chadeayne’s original email notifier code (written in ASP around 1995). I’ve used some more advanced JavaScript than in the original version, modeling it after the way Google Analytics records clicks.

From the readme…

=== Outbound Click Tracker Plugin ===
Tags: outbound, links
Stable tag: trunk
Requires at least: 2.0
Tested up to: 2.8
Contributors: Keith Graham

Tracks clicks on outbound links. Find out where your readers are going.

== Description ==
The Outbound Click Tracker Plugin uses JavaScript to detect and record clicks on an off-site links. JavaScript security model limits which links it can track. It will not track links that advertisers or affiliates have placed in an iframe tag. It will not track Google Adsense clicks. It will not track JavaScript redirects from an onClick event.
Top links in the last 4 days are displayed on the settings page as well as details for each Click.

== Installation ==

1. Download the plugin.
2. Upload the plugin to your wp-content/plugins directory.
3. Activate the plugin.
4. Check the settings page for the Outbound Click Tracker.

== Support ==
This plugin is in active development. All feedback is welcome on “program development pages“.

12 Responses to “Outbound Click Tracker”

  1. Giovanni says:

    Hello Keith,
    it’s possible to track exit links for 7 days instead of 5.
    Moreover: the Outbound Click Tracker database is a great space charge for websites?
    Thanks

  2. Keith says:

    I’ll check it out.

    Keith

  3. Angus says:

    I installed OCT a few weeks ago and all has been working fine. Yesterday I upgraded to WP 2.1.3 and now OCT no longer works.
    Hope you can check on this.

  4. Eric Lamb says:

    And I went to college too:

    Your plugin definitely….

  5. Eric Lamb says:

    You’re plugin definitely has a cooler method for the link parsing.

    Keep it up man; I can’t wait to see what’s next 🙂

  6. Keith says:

    I checked the WP-Click-Track plugin and it is really well done. The only think I can say about mine is that it is very light weight in comparison so it may be a little more compatible with some marginal themes and plugins.

    If you are serious about your outbound links then the WP-Click-Track plugin is for you. It has a great many options and reporting functions. If you are just curious then use mine.

  7. Eric Lamb says:

    Looks like a similar version of a plugin I wrote: WP-Click-Track.

    Love me some competition 🙂

  8. Keith says:

    The database is all set to receive IP numbers and I will update the plugin soon. I don’t want to release too many updates, too fast. This irritates people.
    I also want to try and record the text in the link.
    As far as a separate menu in WP-admin, that seems kind of presumptuous for such a simple plugin. If it add more features and more reports it may deserve a more prominent place, but for now I’ll leave it in the settings menu.

  9. Fridge says:

    Installed your plugin version 1.1 and seems to work fine, clicked 3 links and they are all recorded by the plugin.
    I really like this one and its almost perfect, it would be perfect when it registers the IP number of the reader/user that clicked on the outbound link and to have it’s own direct link in the WP-Admin instead of under settings.

    Thnx 😉

  10. Keith says:

    The two fields were added at the last minute and I was getting ready to add code to fill these fields on the next release. I thought it would be easier than adding the alter table to the next version for people who want to keep their stats.

    I have updated the code, but I now will make a new version and submit it.

    KPG

  11. After this change, it works, but jou have two fields which are not filled : userip and referer

  12. Little mistake in the script, just a point instead a comma in the sql create data table for the url VARCHAR:
    $sql = “CREATE TABLE ” . $table_name . ” (
    time DATETIME NOT NULL,
    page VARCHAR(150) NOT NULL,
    url VARCHAR(150) NOT NULL.
    referer VARCHAR(150) NOT NULL,
    userip VARCHAR(20) NOT NULL
    );”;

Leave a Reply