I’ve simplified the code before posting it here, but because your plugin is very good at certain things and Google Analytics at others, i send event to the two in the same code. Google receive my data so in a way, the code works.
I’ve programmed a very simple function to be sure of my point.
This works :
<a onclick="SlimStat.ss_track(event, 5, 'clicked on first link');" href="https://www.youtube.com/">A link!</a>
This does’nt (the function is executed on the click, but the event not sent):
$(“a”).click(function() {
SlimStat.ss_track(event, 5, ‘clicked on first link’);
});
The line that send the event is the same and is a copy/paste form the documentation.
The reason i wan’t to use JQuery is that i could write a “listener” function and not have to write an onclick for every link.
Thank you for your time and for the great plugin.