Tracking image views in Fancybox (a jQuery Lightbox) using Google Analytics
问题 I am working on this site: http://www.vomero.co.uk/Torquay.aspx and would like to track views of the images (which open in a Fancybox gallery). I know I could add an onClick event to each image, but since the gallery allows the user to view all the images using Next/Prev icons it is unlikely users will actually click each photo. Any ideas? Thanks, Matt 回答1: I think I found a good solution for this. If you only add 'onComplete' key to fancybox() object passing the value of your google