Easy FancyBox
Conflict with Google Analytics for WordPress (3 posts)

  1. Doug
    Posted 3 years ago #


    Does anyone know / is there a work around for the conflict between showing inline content in FancyBox and the Google Analytics for WordPress plugin?



  2. RavanH
    Plugin Author

    Posted 3 years ago #

    Google Analytics for WordPress converts links like href="#anyID" to href="http://yoursite.url/page/#anyID" which indeed breaks FancyBox (it interprets a full URL as iframe content instead of inline) and I had the notion this was caused by the link tracking feature in Google Analytics for WordPress. But someone reported that changing all related options (I'm not familiar with Joost's plugin) did not change anything...

    If you find out any option that disables this URL 'changing' behaviour by Google Analytics for WordPress, please let me know!

  3. luckygurl
    Posted 2 years ago #

    Manually put the Google Analytics asynchronous code snippet into your header.php before the </head> tag. That loads analytics in a seperate js file without changing the way your site operates. You can find the code here - https://developers.google.com/analytics/devguides/collection/gajs/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.