Support » Plugin: Google Analytics for WordPress by MonsterInsights » [Plugin: Google Analytics for WordPress] Show-stopper for other plugins using OAuth authentication

  • wpseek

    (@alphawolf)


    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
    exit;

    Plugins I tested that don’t work with “Google Analytics for WordPress” include:
    – Twitter Blog
    – WordPress Dashboard Twitter

    Thanks!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Simon Wheatley

    (@simonwheatley)

    Code for the People

    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:

    http://pastebin.com/eSfnJRRg

    Simon Wheatley

    (@simonwheatley)

    Code for the People

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Google Analytics for WordPress] Show-stopper for other plugins using OAuth authentication’ is closed to new replies.