WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Doug
    Member
    Posted 1 year ago #

    Hi,

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

    Thanks!

    http://wordpress.org/extend/plugins/easy-fancybox/

  2. RavanH
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

Tags

No tags yet.