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 : {} } 
});

Any questions?

Many answers and more information about Piwik You can find here:

We are social

Follow us: