Fix gallery tracking
Add test for Gallery.js
Merge pull request #821 from lonelyplanet/if-fix-gallery-tracking

Fix gallery tracking