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“.

Comments 9

  1. Guide gratuit wrote:

    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
    );”;

    Posted 13 Nov 2009 at 4:29 pm
  2. Guide gratuit wrote:

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

    Posted 13 Nov 2009 at 4:32 pm
  3. Keith wrote:

    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

    Posted 13 Nov 2009 at 4:39 pm
  4. Fridge wrote:

    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 ;)

    Posted 14 Nov 2009 at 11:42 am
  5. Keith wrote:

    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.

    Posted 14 Nov 2009 at 11:55 am
  6. Eric Lamb wrote:

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

    Love me some competition :)

    Posted 30 Dec 2009 at 4:21 pm
  7. Keith wrote:

    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.

    Posted 30 Dec 2009 at 4:43 pm
  8. Eric Lamb wrote:

    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 :)

    Posted 30 Dec 2009 at 6:55 pm
  9. Eric Lamb wrote:

    And I went to college too:

    Your plugin definitely….

    Posted 30 Dec 2009 at 6:59 pm

Post a Comment

Your email is never published nor shared. Required fields are marked *