Google Analytics by MonsterInsights
[Plugin: Google Analytics for WordPress] Show-stopper for other plugins using OAuth authentication (3 posts)

  1. wpseek
    Posted 4 years ago #

    Hey Yoast,

    some people just noticed that your plugin "Google Analytics for WordPress" seems to be a show-stopper for other plugins providing OAuth authentication. While your plugin is active and authenticating via OAuth in other plugins, the user gets redirected to your plugin's admin page.

    I nailed it down to line 846 in googleanalytics.php. Everything is working as expected after removing

    Plugins I tested that don't work with "Google Analytics for WordPress" include:
    - Twitter Blog
    - WordPress Dashboard Twitter



  2. Simon Wheatley
    Code for the People
    Posted 3 years ago #

    I've hit a similar problem developing a plugin which uses Twitter OAuth. The GAWP plugin assumes it's the only thing which is going to use OAuth and hijacks all incoming OAuth authentication responses.

    Here's a patch (warning: almost entirely untested, but I think it works) for GAWP which adds a specific parameter to the OAuth callback URL which GAWP tests for, instead of the generic OAuth GET params:


  3. Simon Wheatley
    Code for the People
    Posted 3 years ago #

    An alternative would be to change line 79 in googleanalytics.php so it doesn't hook admin_init, but instead hooks the load action for the GAWP admin page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Analytics by MonsterInsights
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic