I'm trying to log ad clicks on my website. When an ad is clicked there is always a GET request to a specific external website. I want my server to be notified as soon as this request is made. So this will allow me to count clicks.
A method that I'm considering but know nothing about is packet sniffers. Can anyone point me in the right direction to get my idea running.
Packet Sniff!!!! i dont think its any where near a solution for your problem.
create a javascript function which is called every time u click the ads, give some special class name and hook an onClick on the particular class to increment the click count and save it some how in a database or a file.
please make use of this link Logging hyperlink clicks on my website