DyegoAV / slimstat

Automatically exported from code.google.com/p/slimstat
GNU General Public License v2.0
1 stars 0 forks source link

Using AJAX to track outbound links #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I once added my own outbound link tracking to my own analytics engine using 
AJAX and wanted to suggest the idea as a future enhancement. My script 
basically replaced all of the <A> tags with a custom handler that first 
kicked off an AJAX request before going to the target URL. I didn't wait for 
feedback, I just moved on immediately and trusted the browser to fire off the 
two requests.

It worked well for me but I don't know how reliable it is as a process and 
whether it's production grade but I offer it as an enhancement for SlimStat. 
I dare say I'll be back with other enhancements and code once I get it 
installed and start playing again.

Original issue reported on code.google.com by paul.liv...@gmail.com on 17 Jan 2010 at 9:42

GoogleCodeExporter commented 9 years ago
That sounds like a good idea, and definitely something worth looking into. If 
you
happen to have any code samples lying around they would be most welcome. :)

Original comment by step...@wettone.com on 28 Jan 2010 at 3:42

GoogleCodeExporter commented 9 years ago
I've been able to modify this and use it on my site to track outbound links: 

http://www.glennjones.net/Post/805/AjaxLinkTracker.htm 

Original comment by iceslide...@gmail.com on 20 Apr 2010 at 3:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You modified that to record the links in slimstat? Care to share the code? :)

Original comment by inh...@gmail.com on 14 Oct 2010 at 1:48