Submitted by joe.price on
I recently wrote a short article about Tracking Form Submissions with Google Analytics Events that focused on one particular use case of event tracking. A client of mine wanted to begin tracking image clicks on their site and I thought I'd share what we did.
The question was, how many times is a particular linked image clicked? Google Analytics automatically tracks the page views on each end of the link, but it doesn't show if they got they there by clicking on a slideshow graphic or other promotional image you might be displaying.
This little bit of jQuery says: anytime a link is clicked that also has a child image (