WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics for WordPress
Event tracking handlers not attaching to relative links (1 post)

  1. Grant Norwood
    Member
    Posted 9 months ago #

    I believe that in v4.0.2, the feature for rewriting relative links was introduced. However, I just noticed that some relative links to downloadable assets had an almost total drop in download events in Google Analytics after a recent plugin update, and when I viewed the source of my site, I could see that only the fully-qualified URLs had onclick handlers to properly fire _trackEvent() attached, and not the relative links. After updating my page to include the full URLs, those download links immediately began working again, and I was able to see the event fire in the debug console as well as show up in my GA real-time event tracking.

    Could you please advise?

    By the way, this is the only GA plugin I use across every web property I touch, and the debug functionality in the browser console is a life saver. Thank you for all the hard work!

    Grant

    http://wordpress.org/plugins/google-analytics-for-wordpress/

Reply

You must log in to post.

About this Plugin

About this Topic