Made of Everything You're Not

If you're a stalker I'd prefer if you didn't kill me. Thanks.
  • Home
  • Projects
  • Portfolio
  • Resume

WP-Click-Track

wp-click-track is a WordPress plugin, started in January 2009, that adds automated link tracking to your posts and pages. It initially started out as a simple plugin for my own personal usage but has since evolved into a full module all its own.

Features
Usage
Future Releases
Change Log
Installation

Requires at least: 2.6
Tested up to: 2.9stable
Stable tag: 2.9

Tracks link clicks from hrefs in posts and pages.

Description

The click tracker works in 2 modes:
1. Scans posts and rewrites them to include a tracking element.
2. Enables users to create stand alone trackable links that can be embedded in posts or offsite.

Click Tracker Admin

Click Tracker Admin


Features

Automatically converts links in posts, pages and sidebar to allow for tracking.
Extensive reporting area:

  • Link Report
    Link Report

    Link Report

  • Daily Report
    Daily Report

    Daily Report

  • Admin Widget
    Admin Widget

    Admin Widget


Usage

The click tracker works in 2 modes:
1. Scans posts and rewrites them to include a tracking element
2. Enables users to create stand alone trackable links that can be embedded in posts or offsite.
Links should include a title paramater in the href to have the reference name be automatically created. Ex:
<a href=”http://url.com” title=”Link Title”>link copy</a>

Links without a title attribute will have a default name created.


Future Releases

  • advanced reporting
  • localization
  • export data


Changelog

0.7

  • Modification: Improved tracking cookie management.
  • Modification: Added setting to disable the tracking of internal (same URL) links
  • Modification: Changed Configure page to use tab ui
  • Bug fix: Fixed ssl (https) => flash issue
  • Bug fix: Fixed sidebar.css 404 error
  • Bug fix: Added “nowrap” to table template headers
  • Bug fix: Fixed Day Pie chart for thousandths

0.6

  • Modification: Added Top Clicks Sidebar Widget
  • Modification: Added Todays Clicks Sidebar Widget
  • Modification: Added Link Search (requires MyISAM table type)
  • Modification: Began localization phase
  • Modification: Improved admin interface and menu
  • Modification: Improved tracking mechanism
  • Bug fix: Fixed ‘label’ in Exclude IP field on configure page
  • Bug fix: Fixed “self” link tracking/FireFox issue.
  • Bug fix: Fixed “https” being ignored during sanity check.

0.5.1

  • Modification: Added Miscellaneous Settings (Sarah Mod)
  • Modification: Changed admin widget date range to match WordPress.com Stats widget
  • Bug fix: Fixed ‘label’ in configure page form

0.5

  • Modification: Added ignore IP address for click tracking
  • Modification: Added link statistics reset
  • Modification: Changed graphs to Open Flash Chart
  • Modification: Added additional line chart vectors to display unique clicks
  • Modification: Added link parsing of next and prev template tags
  • Modification: Added link parsing of categories in posts/pages as well as sidebar widget
  • Modification: Added link parsing of tags links template
  • Modification: Improved title extraction to reduce No Name Given auto-label
  • Modification: Added global history and report page
  • Bug fix: Click graph date descrepancy issue
  • Bug fix: Added bypass for external links being double tracked when entered in page
  • Bug fix: Fixed backwards tracking flags
  • Bug fix: Changed admin widget ordering to list most clicked to least click

0.4.2

  • Modification: Admin widget links to click admin

0.4.1

  • Improvement: Added admin widget
  • Bug fix: Fixed “Division by zero” bus

0.4

  • Improvement: Added configuration page
  • Improvement: Added “Add Link” mod. Admins can create standalone links for placement on external sites.
  • Improvement:Added “Edit Link” mod for editing names or stored links.
  • Improvement:Enable or disable individual parsing sections
  • Improvement:Enable or disable individual parsing sections
  • Improvement:Moved google api js call to only fire on click track pages (was slowing down some areas of the admin).
  • Bug fix: fixed spelling of days of week
  • Bug fix:fixed pathing issue for tracking call (Logan and Gary’s Bug)
  • Bug fix:fixed comment body parsing (wasn’t grabbing links)
  • Bug fix:fixed memory issues (FINALLY :)

0.3

  • Improvement: Added Indexes on tables for better performance
  • Improvement: Updated Install system
  • Improvement: Added pie charts for clicks by day and hour
  • Bug fix: hour click report formatting
  • Bug fix: blank link haunting
  • Bug fix: option saving

0.2.1

  • Bug fix: include usage of both quotes (“) and single-quotes (‘) for attributes
  • added parsing / tracking of Archive links
  • added parsing / tracking of Bookmark links
  • added parsing / tracking of Comment Author URL links
  • fixed option updates

0.2

  • Add report area– List of referrers– Clicks by day– Clicks by hour– View individual clicks
  • Manage Google Analytics WordPress Plugin incompatibility
  • Add upgrade notification

0.1.1

  • Bug fix js Image() issue

0.1

  • Initial Release

Bugs

  • admin panel doesn’t keep state
  • Incompatibility with Google Analytics WordPress Plugin with Track Outbound enabled

Installation

  1. Create backup.
  2. Upload the zip file to the `/wp-content/plugins/` directory
  3. Unzip
  4. Activate the plugin through the ‘Plugins’ menu in WordPress

Please let me know any bugs, improvements, comments, suggestions.
Download Click Tracker

Bookmark and Share

236 Comments

  1. Mizsia says:
    January 7, 2009 at 1:16 am

    hi there…nice plugin…but can help me make some changes to this plugin to count some other link such as delicious links that i want put in widget? (sorry about my english…) and one more thing…can this plugin show amount of clicks beside the link?

    Reply
  2. Nonaoco says:
    January 7, 2009 at 8:46 am

    not work!

    Reply
  3. Sheik says:
    January 9, 2009 at 4:33 am

    I tried Click Tracker in my wordpress website but i cant find it anywhere in the admin panel.
    Please advise on what to do here…

    Sheik

    Reply
    • Eric Lamb says:
      January 9, 2009 at 9:12 am

      The stats show up on the post/page edit screen. The link has to have been clicked on in order for it to show up in the stats though.

      Reply
  4. maddy says:
    January 9, 2009 at 10:21 pm

    does it capable of tracking ( read more ) parameter?

    Reply
  5. Eric Lamb says:
    January 10, 2009 at 11:55 pm

    Maddy,

    No, it doesn’t do that. I’m not even sure if the API allows for modifying the ( read more ) a href…

    Reply
  6. WordPress Plugin Releases for 01/06 | BlogBroker24-7 says:
    January 11, 2009 at 3:17 am

    [...] WP Click Track [...]

    Reply
  7. WordPress Plugin Releases for 01/06 | Castup says:
    January 11, 2009 at 3:45 pm

    [...] WP Click Track [...]

    Reply
  8. Luciano says:
    January 14, 2009 at 4:48 pm

    Hi Eric,

    I am trying to make your plugin to work, without success.
    I have added links to pages and posts, all with titles, like this:

    After clicking the links, I edit the page / post and Click Tracker panel always displays the “No links Found” message.

    Any tips are welcome.
    Thank you!

    Reply
  9. Eric Lamb says:
    January 14, 2009 at 5:17 pm

    Hi Luciano,

    I just updated the click-tracker with a bug fix release about 2 minutes ago. There was a bug that prevented the some browsers from sending the proper parameters. Your click tracker install version should now be 0.1.1

    Can you confirm the version you’re working with if it’s not 0.1.1?

    Thanks,
    Eric

    Reply
  10. Greg Wilker says:
    January 15, 2009 at 6:52 am

    Luciano & I – are getting the same issue. — I believe everything is correct, I’m going to let it run for a bit… let me know if you have another update

    0.1.1

    Reply
  11. Eric Lamb says:
    January 19, 2009 at 2:50 am

    I’ve just released version 0.2. Please upgrade your installation and please let me know if the issues continue :)

    Reply
  12. WordPress Plugin Releases for 01/19 | Weblog Tools Collection says:
    January 19, 2009 at 11:20 am

    [...] WP-Click-Trick [...]

    Reply
  13. WordPress Plugin Releases for 01/19 | Tips Wordpress says:
    January 19, 2009 at 11:59 am

    [...] WP-Click-Trick [...]

    Reply
  14. WordPress Plugin Releases for 01/19 | BlogBroker24-7 says:
    January 19, 2009 at 3:54 pm

    [...] WP-Click-Trick [...]

    Reply
  15. Tan The Man says:
    January 19, 2009 at 8:21 pm

    Nice…

    Reply
  16. Niche Titans says:
    January 19, 2009 at 9:13 pm

    Can you make it so it scans the whole theme?

    Reply
    • Eric Lamb says:
      January 20, 2009 at 12:15 pm

      Hi Niche,

      wp-click-track only scans data that resides in the database so anything hard coded in the template isn’t modified. If you want to add links to your template for tracking you can use the below template:

      <a href="URL_TO_GO_TO" onclick="javascript:TrackClick('URL_TO_GO_TO','TITLE_FOR_CLICK_TRACK')" rel="nofollow">TITLE_FOR_CLICK_TRACK</a>

      Just replace URL_TO_GO_TO with a fully resolved URL like:
      http://www.yahoo.com

      And replace TITLE_FOR_CLICK_TRACK with the name you want to show up in the admin.

      Reply
  17. New WordPress Plugin Releases for 01/19 | Web About Money says:
    January 19, 2009 at 10:32 pm

    [...] WP-Click-Trick [...]

    Reply
  18. Wordpress - spore klikk p says:
    January 20, 2009 at 6:41 am

    [...] du trenger da er WP-Click-Track 0.2 | Made of everything you’re not Der f

    Reply
  19. 兔眼看天下 » [01/21]今日推薦WordPress外掛 says:
    January 20, 2009 at 10:40 am

    [...] 追蹤點擊:WP Click Track [...]

    Reply
  20. Weblog Tools Collection: WordPress Plugin Releases for 01/19 | Aslifm Blogu says:
    January 20, 2009 at 7:15 pm

    [...] WP-Click-Trick [...]

    Reply
  21. WordPress Plugin Releases for 01/19 | Web2.0 says:
    January 21, 2009 at 2:01 am

    [...] WP-Click-Trick [...]

    Reply
  22. WordPress Plugin Releases for 01/19 says:
    January 23, 2009 at 8:06 am

    [...] WP-Click-Trick [...]

    Reply
  23. WordPress Plugin Releases for 01/19 | FOX-CUB.COM says:
    January 23, 2009 at 11:55 pm

    [...] WP-Click-Trick [...]

    Reply
  24. » Blog Archive » Super Pack Plugins Para Wordpress [2009] says:
    January 25, 2009 at 10:47 am

    [...] WP Click Track [...]

    Reply
  25. WordPress Plugin Releases for 01/19 : Xinfo - Open Source News & Discussion says:
    January 31, 2009 at 3:16 am

    [...] WP-Click-Trick [...]

    Reply
  26. WP-Click-Track - WP Plugin Archive says:
    January 31, 2009 at 4:39 am

    [...] WordPress Plugin WP-Click-Track von Eric Lamb wandelt Links in Postings, Seiten und der Sidebar mit einem onlick event um, so dass [...]

    Reply
  27. Guillermo says:
    February 1, 2009 at 3:47 pm

    Hi, i has a problem with WP-click-Track
    I activate the plug in and one post of my blog was broken.

    This is the error message:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 30705170 bytes) in /++++/+++++++/++++/+++++/wp-content/plugins/wp-click-track/click-tracker.php on line 111

    I hope I have been helpful (sorrry my english googletranslatein) :p

    Reply
  28. Eric Lamb says:
    February 1, 2009 at 9:52 pm

    Hi Guillermo,

    It looks like there’s an issue with the regex for extracting the links. I’ll have a bug release in the next 48 hours that will fix this up.

    It should be noted that this is only applicable on pages with a large number of links on the page (>20 or so depending on memory settings).

    Thanks for the heads up,
    Eric

    Reply
  29. Joerg says:
    February 6, 2009 at 11:32 am

    Hi Eric,

    Did you get a chance to look at the problem as reported by Guillermo? I have the same problem with wp-click-track. All my posts have a LOT of links and it seems that they are all affected.

    Thanks for looking into it!

    –Joerg

    Reply
  30. Wordpress: ecco la lista completa dei plugin compatibili con la versione 2.7 : Blogtecnico - Web news social 2.0: internet e tecnologia, blogging e tutorial says:
    February 7, 2009 at 8:23 am

    [...] WP-Click-Track 0.1.1 [...]

    Reply
  31. Paul Arterburn says:
    February 11, 2009 at 4:30 pm

    This plug-in was making some of my the_excerpt(); not work and wasn’t compatible with the Shadowbox JS plug-in (image links).

    Reply
    • Eric Lamb says:
      February 11, 2009 at 10:36 pm

      hmmm….

      I’ll look into this.

      Reply
  32. Gary says:
    February 21, 2009 at 4:10 pm

    hi there just aded your plugin and i keep getting No Links Found
    this is the url and how it looks is there something i have not got right in it

    Thanks Gary

    Reply
  33. Gary says:
    February 21, 2009 at 4:12 pm

    Reply
  34. Eric Lamb says:
    February 21, 2009 at 4:31 pm

    Gary,

    For some reason you’re link didn’t go through so I’m not really sure what your issue is. Off the top of my head though, can you verify if anyone has clicked on your link yet? The links only show up in the admin stats page if a link has been clicked.

    –UPDATE–
    I just went to your site and checked the format of the links and they’re good man. I clicked on a couple of the links on your home page so if you check that entry in your admin you should be able to see some stats. Let me know if you still have an issue.

    Eric

    Reply
  35. Gary says:
    February 22, 2009 at 12:36 am

    Hi Eric

    i had a look in the admin and still getting No Links Found
    will it have anything to do with i am using WordPress 2.7.1 ?.

    hope to get it working as its just the thing i need to sort out the most active apps on my site

    Thanks Gary

    Reply
    • Eric Lamb says:
      February 22, 2009 at 11:21 am

      Hi Gary,

      I think I’ve figured it out. The click tracker sends requests to a URI that doesn’t exist on your system because you have WordPress in a subdirectory of your domain (apps) instead of in the root. It’s a crucial part of the system so the tracking isn’t working.

      I’m going to work out a fix for this scenario in the next release but until then you can go into the plugin manager and modify the plugin directly. Here’s how:

      On your site go to:
      http://socialnetworkapps.co.uk/apps/wp-admin/plugin-editor.php?file=wp-click-track/click-tracker.php

      and search for ‘/goto/’ without the quotes. For your scenario, change it to ‘/apps/goto/’.

      That should fix it up.

      I’m sorry for the inconvenience man.

      Eric

      Reply
  36. Gary says:
    February 22, 2009 at 1:40 pm

    Hi Eric done that will give it a day or 2 to see how it gose
    if not then will wait for the bug fix and thans for all your help
    on this

    Gary

    Reply
  37. Logan Best says:
    February 27, 2009 at 12:05 pm

    Hello, I have installed the plugin on our test server with a new upgrade to WP 2.7. I made a post for testing and clicked around a little bit while logged in and not logged in. The URL’s that it is creating are correct, and I even used the hardcode version of the custom link code and tried that. When I go to the “Click Tracker” link in the settings panel all it says is “No Links Found.”

    Any Ideas? feel free to email me directly.

    Reply
  38. Joerg says:
    March 5, 2009 at 10:05 am

    Eric,

    In your posting on 01 Feb you mentioned that you will have a fix for pages with MANY links soon. I get the error message

    Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 5358133 bytes) in *******/blog/wp-content/plugins/wp-click-track/click-tracker.php on line 111

    if I activate your plugin.

    Did you make any progress on this bug fix?

    –Joerg

    Reply
  39. Eric Lamb says:
    March 5, 2009 at 12:27 pm

    Hi Joerg,

    Sorry for the delay in getting the next release out; I’ve been really busy with life and the day job so it’s been pretty tough to find time to dig into your issue.

    I’m happy to say I’ve fixed the issue and will be updating the plugin repository in the next couple days after I do some more testing. To test, I used HTML from a post on your site with over 100 links in it and all the links were able to be converted into trackable links. Good news :)

    In the meantime, if you’re open to it I’d like to get your help testing the newest release before I publish it. Your site has more links than I ever considered possible (or practical for a WP blog) so I’m thinking if the click tracker is stable on your site it’s in a pretty good spot and ready for release.

    Thanks for the heads up on the bug. Please let me know if anything else happens with it.

    Eric

    Reply
  40. Daniel Richard says:
    April 1, 2009 at 8:16 pm

    Heya Eric, I liked the concept for this click tracking thingy. However, I still can’t get it to show any stats on the dashboard (or even in Plugins > Click Tracker) , and it kept showing this error:

    Warning: Division by zero in… /admin.inc.php on line 619
    No Links Found

    While that’s after creating 3 links and having one of them active on the site from the config area.

    Mmm. Hope to get a reply from ya! Btw, this plugin idea is really awesome!

    Daniel

    Reply
  41. Daniel Richard says:
    April 1, 2009 at 8:17 pm

    Oh, I didn’t have Google Analytics on the site too. So was wondering where I might have gone wrong on the blog. Lol

    Reply
    • Eric Lamb says:
      April 1, 2009 at 10:10 pm

      Daniel,

      Thanks for pointing this out to me. I have updated the plugin repository with a new version that doesn’t have this bug.

      The issue was with the options not being set. If you don’t want to upgrade. you just have to go through the config page in the Settings menu (I hadn’t accounted for the defaults; sorry).

      Eric

      Reply
  42. Daniel Richard says:
    April 3, 2009 at 11:16 am

    Heya! Saw the reply here. I’ve done with the config thing earlier on and it worked. Thanks for the fix! :)

    Reply
  43. Aidan says:
    April 25, 2009 at 11:11 pm

    hi,
    Im having the same problem as gary with wordpress 2.7.1.
    Also is there any way i can reset the number of clicks – it just would be really benifical to me if i could do this weekly.

    cheers

    Reply
  44. diana says:
    May 15, 2009 at 9:02 am

    This happens when I used the plugin:

    It basically converted everything into “link tracking”, which is really weird. The site is under construction, but you can access: http://www.golfforegeorgia.com.php5-3.dfw1-1.websitetestlink.com. I took off the plugin though.

    Reply
  45. Eric Lamb says:
    May 15, 2009 at 9:15 am

    Diana,

    That’s what it’s supposed to do; convert all links in posts and a few other areas into click tracked links. I checked your site and I can’t find any tracking links though. Did you have caching enabled maybe?

    Reply
  46. diana says:
    May 15, 2009 at 9:55 am

    Hi Eric,

    It converted non links into links as well: http://www.golfforegeorgia.com.php5-3.dfw1-1.websitetestlink.com/georgia-golf-courses

    Reply
  47. diana says:
    May 15, 2009 at 10:22 am

    It also did that on the front page, where the box should have a magazine picture to click, it just says “onclick=”, below that, if you go to that page, it converted link correctly. I don’t know why it’s converting non links.

    Reply
  48. diana says:
    May 15, 2009 at 10:25 am

    sorry to keep writing, and on contact page, it did this the whole time onclick=”javascript:TrackClick(”,’%2Fupload%2Fcp%2Fupload_login.php’)”,”

    Reply
  49. Eric Lamb says:
    May 15, 2009 at 10:46 am

    Diana,

    This is weird. It looks like your HTML is using smart quotes or something simliar (but not the standard single (‘) or double (“) quotes. The parser is definitely choking on the HTML in your site.

    Can you please send me some raw, not parsed, HTML from your site so I can take a look? Just send it to eric@ericlamb.net.

    Thanks!

    Reply
  50. Andy says:
    June 2, 2009 at 4:40 am

    Hello Eric,

    I am looking for a plugin that would track clicks made by registered users. Can your plugin do it? If not, is it a difficult modification? Or maybe do you know any plugin that would be able to give me this kind of stat?

    Thank you!

    Reply
  51. Newer Comments »

Leave a Reply

Click here to cancel reply.

  • Subscribe: Entries | Comments
  • About Me

    Email Email
    Twitter Twitter
    310.739.3322
  • Categories

    • Brain Dump
    • Business
    • Code
    • IT
    • Programming
    • Rant
    • Servers
  • Archives

    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008

Copyright © 2008 - 2010 Eric Lamb - All rights reserved