[jQuery] Re: Total Noob needs help please with emailing on clicking of links

2009-03-13 Thread KillerKellerjr

Thanks for the input so far! I figured out a slightly different route,
I installed PHP and CCount on the server.  Now we can at least have an
admin php page that keeps track of how many times each video link is
clicked on in a flat dB file.  Now I just wish it would send the
user's network username login (not password) to keep track of each
individual.  This may only be temporary until I figure out how to get
emails with all that info.

Thanks


[jQuery] Re: Total Noob needs help please with emailing on clicking of links

2009-03-12 Thread Sam Sherlock
surely google analytics and jquery gatracker in addition to RobG suggestion
to qualify what google reports

Then you can have google analytics send dat in pdf every week

- S


2009/3/13 RobG 

>
>
>
> On Mar 13, 7:52 am, KillerKellerjr  wrote:
>
> [...]
> > I
> > am looking to get some code to that will email someone ever time
> > different links are clicked on a page.  Basically to report back so
> > someone can keep track of when educational videos are watched so we
> > can keep track of total educational hours, its required by our
> > company.
>
> Tracking link clicks in the browser is a really bad way to do that.
> You don't know that the link was followed or that the video was
> watched - it is quite possible visitors will follow the link and watch
> the video *without* clicking on it.
>
> Some other (server side) method based on streaming the content will
> likely give a much more accurate result.
>
>
> --
> Rob


[jQuery] Re: Total Noob needs help please with emailing on clicking of links

2009-03-12 Thread RobG



On Mar 13, 7:52 am, KillerKellerjr  wrote:

[...]
> I
> am looking to get some code to that will email someone ever time
> different links are clicked on a page.  Basically to report back so
> someone can keep track of when educational videos are watched so we
> can keep track of total educational hours, its required by our
> company.

Tracking link clicks in the browser is a really bad way to do that.
You don't know that the link was followed or that the video was
watched - it is quite possible visitors will follow the link and watch
the video *without* clicking on it.

Some other (server side) method based on streaming the content will
likely give a much more accurate result.


--
Rob


[jQuery] Re: Total Noob needs help please with emailing on clicking of links

2009-03-12 Thread James

I'm not going to write everything for you, but a good way would be to
give every link that you want tracked a specific class name. For
example, 'link'

track me
clicky click

Your code will be to bind a click event to every element with the
class 'link', and perform an AJAX request to some server-side script
(e.g. PHP)

$('.link').click(function() {
 var url = $(this).attr('href');  // gets the url that was clicked
on
 $.post('tracker.php', {url:url});  // submit the url to your
server-side script
});

This will be transparent to the user. It would not be tracked if
Javascript is disabled.

On Mar 12, 11:52 am, KillerKellerjr  wrote:
> Ok so I need some code to help me out here, I am not really a
> programmer by any means but do understand it to a point as I am mostly
> self taught.  I mostly do HTML with CSS stuff and some javascript.  I
> am looking to get some code to that will email someone ever time
> different links are clicked on a page.  Basically to report back so
> someone can keep track of when educational videos are watched so we
> can keep track of total educational hours, its required by our
> company.  I think if I read enough I need to use IDs or something but
> am not too sure on how to use jQuery to assist with emailing maybe the
> link etcplease someone help me out here I have been beating myself
> up over this one for several months.
>
> Thanks