Touch Gallery now includes a very simple event triggered whenever an image is viewed.
The event is tg.imageViewed
it includes 4 parameters:
Using with Google Analytics is pretty simple. Let's say you want to trigger a GA event and reference the image's title when it happens. Just do:
$(document).on('tg.imageViewed', function(e) { ga('send', 'event', 'gallery', 'image viewed', e.title); });
Of course, this is just an example. You can use whatever values you want.