How do I track my videos when I am using the jQuery fancyBox plugin?
When you initialize the fancy box plugin, we recommend to add a custom property “afterLoad” like this:
$(‘.fancybox’).fancybox({
afterLoad: function () {
_paq.push([‘MediaAnalytics::scanForMedia’]);
},
width: 576,
height: 320,
type: ‘iframe’,
helpers : { media : {} }
});