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

185 Comments

  1. Mizsia says:

    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?

  2. Nonaoco says:

    not work!

  3. Sheik says:

    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

  4. maddy says:

    does it capable of tracking ( read more ) parameter?

  5. Eric Lamb says:

    Maddy,

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

  6. Luciano says:

    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!

  7. Eric Lamb says:

    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

  8. Greg Wilker says:

    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

  9. Eric Lamb says:

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

  10. Niche Titans says:

    Can you make it so it scans the whole theme?

    • Eric Lamb says:

      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.

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

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

  13. Guillermo says:

    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

  14. Eric Lamb says:

    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

  15. Joerg says:

    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

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

  17. Gary says:

    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

  18. Eric Lamb says:

    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

  19. Gary says:

    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

    • Eric Lamb says:

      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

  20. Gary says:

    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

  21. Logan Best says:

    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.

  22. Joerg says:

    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

  23. Eric Lamb says:

    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

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

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

    • Eric Lamb says:

      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

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

  27. Aidan says:

    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

  28. diana says:

    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.

  29. Eric Lamb says:

    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?

  30. diana says:

    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.

  31. diana says:

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

  32. Eric Lamb says:

    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!

  33. Andy says:

    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!

Leave a Reply