added analytics to fancybox