Here is the code I have to open my fancybox (plugin Easy FancyBox):
Download the <a href="#sample_chapter" class="fancybox">Sample Chapter</a>. <div style="display:none" class="fancybox-hidden"> <div id="sample_chapter" style="width:460px;height:380px;"> content here. </div> </div>
My problem is that when the Google Analytics for WordPress plugin in enabled the link opens the entire page in the fancybox and not the content in the sample_chapter div.
First I went to the FancyBox support forum, and the author suggested that "usually, it is an external click/link tracking plugin that prepends the #sample_chapter inside the href with the full path which results in the link opening the full page inside an iframe."
Is there some setting that I am missing that would fix this issue? I tried disabling the Track outbound clicks & downloads but that had no effect. Any help would be appreciated!