Title: [Plugin: Google Analytics for WordPress] Problem and solution with multisite network enabled site
Last modified: August 20, 2016

---

# [Plugin: Google Analytics for WordPress] Problem and solution with multisite network enabled site

 *  Resolved [kotsis](https://wordpress.org/support/users/kotsis/)
 * (@kotsis)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-problem-and-solution-with-multisite-network-enabled-site/)
 * Hello there, i would like to inform you about a problem we had with the google
   analytics plugin and how we solved it. Perhaps you will decide to make the change
   also.
 * We are using your plugin in a network mulitsite enabled wordpress. The users 
   are all created automatically.
    Since our users can only add other existing users
   to their blogs, but they can not edit them, they don’t have the ‘edit_users’ 
   capability! So while they can enable the ‘google analytics for wordpress’ plugin,
   when they try to go to the options page they get the message that they don’t 
   have permission.
 * We solved the problem by editing the file yst_plugin_tools.php at line 19
 * from – var $accesslvl = ‘edit_users’;
    to + var $accesslvl = ‘activate_plugins’;
 *  With the activate_plugins capability we still make sure that the logged in is
   an administrator and we can now access the options page without the permission
   error.
 *  Thank you.
 * [http://wordpress.org/extend/plugins/google-analytics-for-wordpress/](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [yowzer](https://wordpress.org/support/users/yowzer/)
 * (@yowzer)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-problem-and-solution-with-multisite-network-enabled-site/#post-2306706)
 * This is a pretty trivial issue to fix. The problem is you have to know the right
   search terms to find the solution. Unfortunately, I found the same issue and 
   fix only after a few hours of digging through plugin code.
 * I used:
    `$accesslvl = 'manage_options';`
 *  [amichetti](https://wordpress.org/support/users/amichetti/)
 * (@amichetti)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-problem-and-solution-with-multisite-network-enabled-site/#post-2306708)
 * kotsis – thank you so much for posting this! I was wondering why the plugin wasn’t
   working. We are also on multisite and I am not an experienced developer so I 
   rarely edit php unless I know exactly what to look for. Really appreciate it!
 *  [alittlebitofnothing](https://wordpress.org/support/users/ecomonkey/)
 * (@ecomonkey)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-problem-and-solution-with-multisite-network-enabled-site/#post-2306774)
 * let’s hope that get’s rectified in a future update! thanks to the above for saving
   me a bit of time!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Google Analytics for WordPress] Problem and solution with multisite
network enabled site’ 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/)

 * 3 replies
 * 4 participants
 * Last reply from: [alittlebitofnothing](https://wordpress.org/support/users/ecomonkey/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-problem-and-solution-with-multisite-network-enabled-site/#post-2306774)
 * Status: resolved