Trackr 0.1 – jQuery based user interaction tracking (PHP/MySQL)

Trackr is a very simple, lightweight (well, if you’re already using jQuery) user interaction tracker. It’s not particularly robust and is only in a fairly simple form right now.

The back end is written in PHP using MySQL for storage, but could easily be implemented in other languages.

To log data, you simply add a call to Trackr.init() to the page load event, passing the desired options as the only parameter to the function.

There are a variety of options that can be specified and for more information please see the test page.

You can get it here (includes jQuery 1.3.2).

9 Replies to “Trackr 0.1 – jQuery based user interaction tracking (PHP/MySQL)”

    1. Hi there!

      I’m glad you like it! I’ll hopefully do some more work on this at some point, add some polish… I’d be interested in your experiences with it, if you extend it at all also I’d love to know how it works out… maybe a little too big brother I guess… hehe Thanks!

  1. Thanks for the excellent code.
    It’s just what I was looking for.

    I would like to enhance it to suit my needs more fully. I want it to look in the url for “?VIP=” in url and use the value as a session number. I send out a proposal or portfolio link in my email and when they click the email link I want to know when they first see my site, how long it took to load, all the browser and ip address i can get, etc. I want to know what exactly they look at and click and for how long and it’s not a lot of users (an online proposal of mine might get looked at 2-10 times on average before being revised), so data size is not an issue. Sometimes I might want to run it over a sample size much larger of say 100 random users to see if anybody actually clicks a specific button, or if it’s just slowing down the page comprehension time.

    I have a system currently in place that does all the recording above from a flash website including the PHP, MySQL, using as3 code. Except the mouse coordinates playback feature you have created using Jquery is very attractive and elegant, so I will want to add the functionality for my non-flash pages and replicate you’re clean and beautiful pseudo code in AS3 for the Flash websites.

    Any plans to make a WordPress plugin for this?

    1. Hi Steve,

      I’ve got no plans currently to work on a WordPress plugin at the moment, but I would hope that the script could be added to the header of the blog and would still work as anticipated…

      I haven’t actually tested this however, but I’d be very interested in hearing about your experiences. I may be able to help directly if you contact me with any problems you encounter.

      Hope that helps,


  2. This is really close to something I’ve been writing. You might consider using WebDB instead and bypass the whole PHP/MySQL backend problem.

    1. Hi there,

      Thanks for commenting! If I were rewriting now, I would definitely use client-side storage if possible or manage the transmission differently, however I did learn a lot in the process of knocking this up (and it was fun too!)


  3. Hi!
    I was searching for a JQuery based light interaction API and I finally got this one. It is quite an interesting piece of work, I just have one query. How can I log the time stamp along with the interaction points? Say, I want to find out how much time was spent between two successive mouse clicks, how can I do that?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.