Title: [Plugin: Google Analytics for WordPress] Plugin conflict due to bad code
Last modified: August 20, 2016

---

# [Plugin: Google Analytics for WordPress] Plugin conflict due to bad code

 *  [Ryan McCue](https://wordpress.org/support/users/rmccue/)
 * (@rmccue)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-plugin-conflict-due-to-bad-code/)
 * I mentioned this to you on Twitter, but your plugin is being a bad neighbour.
   🙂
 * On [line 841](http://plugins.trac.wordpress.org/browser/google-analytics-for-wordpress/trunk/googleanalytics.php#L841),
   you’re checking if `oauth_token` is set, however you’re not checking if you’re
   actually on the Google Analytics page. If another plugin (say, mine) uses an 
   OAuth postback correctly, it will be overriden by this.
 * `GA_Admin::authenticate()` should be checking if it’s actually on the GA page.
 * Thanks. 🙂
 * [http://wordpress.org/extend/plugins/google-analytics-for-wordpress/](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/)

The topic ‘[Plugin: Google Analytics for WordPress] Plugin conflict due to bad code’
is closed to new replies.

 * ![](https://ps.w.org/google-analytics-for-wordpress/assets/icon.svg?rev=2976619)
 * [MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-for-wordpress/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ryan McCue](https://wordpress.org/support/users/rmccue/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-plugin-conflict-due-to-bad-code/)
 * Status: not resolved