Support » Plugin: MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy) » Event tracking handlers not attaching to relative links

  • Grant Norwood


    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!


  • The topic ‘Event tracking handlers not attaching to relative links’ is closed to new replies.