I found some topics which might have been related to my issue, but I wasn't 100% sure.
I want to setup Events tracking (Google Analytics) so that I know which photos from a Lightbox image gallery attract the most attention.
I used this:
a rel="lightbox[portrait]" href="images/image-14.jpg" onClick="_gaq.push(['_trackEvent', 'Image', 'Open Image', '14' ]);"><img src="images/thumb-14.jpg"></a>
But of course, if the visitor then uses the left/right arrows to navigate, I only know which photo was the initial click.
Is there any way around this?