Title: Site Kit errors on pages
Last modified: May 31, 2022

---

# Site Kit errors on pages

 *  Resolved [cyaniccypher](https://wordpress.org/support/users/cyaniccypher/)
 * (@cyaniccypher)
 * [4 years ago](https://wordpress.org/support/topic/site-kit-errors-on-pages/)
 * Hello,
 * Many of my pages generate the following errors below.
 * Please let me know how to address them:
 *     ```
       An error occurred while running 'mapSelect': Cannot read properties of null (reading 'isGatheringData')
       The error may be correlated with this previous error:
       TypeError: Cannot read properties of null (reading 'isGatheringData')
           at Object.current (https://orchardaudio.com/wp-content/cache/wpo-minify/1653914029/assets/wpo-minify-footer-googlesitekit-adminbar.min.js:1:132192)
           at e (https://orchardaudio.com/wp-content/cache/wpo-minify/1653914029/assets/wpo-minify-footer-googlesitekit-vendor.min.js:1:217003)
           at https://orchardaudio.com/wp-content/cache/wpo-minify/1653914029/assets/wpo-minify-footer-googlesitekit-vendor.min.js:1:217112
           at Ui (https://orchardaudio.com/wp-content/cache/wpo-minify/1653914029/assets/wpo-minify-footer-googlesitekit-vendor.min.js:1:851267)
           at va (https://orchardaudio.com/wp-content/cache/wpo-minify/1653914029/assets/wpo-minify-footer-googlesitekit-vendor.min.js:1:874194)
           at t.unstable_runWithPriority (https://orchardaudio.com/wp-content/cache/wpo-minify/1653914029/assets/wpo-minify-footer-googlesitekit-vendor.min.js:1:893819)
           at Mr (https://orchardaudio.com/wp-content/cache/wpo-minify/1653914029/assets/wpo-minify-footer-googlesitekit-vendor.min.js:1:818919)
           at Yj (https://orchardaudio.com/wp-content/cache/wpo-minify/1653914029/assets/wpo-minify-footer-googlesitekit-vendor.min.js:1:870621)
           at Lj (https://orchardaudio.com/wp-content/cache/wpo-minify/1653914029/assets/wpo-minify-footer-googlesitekit-vendor.min.js:1:860979)
           at https://orchardaudio.com/wp-content/cache/wpo-minify/1653914029/assets/wpo-minify-footer-googlesitekit-vendor.min.js:1:819210
   
       Original stack trace:
   
           in AdminBarSessions
           in WithWidgetComponentProps(AdminBarSessions)
           in div
           in Cell
           in div
           in Row
           in AdminBarWidgets
           in div
           in Cell
           in div
           in Row
           in div
           in ForwardRef
           in AdminBarApp
           in RestoreSnapshots
           in ErrorHandler
           in Root
       ```
   
    -  This topic was modified 4 years ago by [cyaniccypher](https://wordpress.org/support/users/cyaniccypher/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsite-kit-errors-on-pages%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [4 years ago](https://wordpress.org/support/topic/site-kit-errors-on-pages/#post-15695584)
 * Hi [@cyaniccypher](https://wordpress.org/support/users/cyaniccypher/),
 * Thanks for getting in touch. Based on the details you kindly provided this error
   seems to be as a result of a configuration with an optimization plugin, possibly
   minification or combining of JavaScript assets.
 * When applied these JavaScript can result in unpredictable behavior with other
   plugins, including the admin toolbar and Site Kit.
 * As it looks like you’re using the WP Optimize plugin can you temporary deactivate
   this and inform me if the issue remains, when using the Site Kit admin toolbar?
   You can re-activate WP Optimize afterwards. If the issue no longer occurs I’d
   be happy to check the settings with you for any possible cause. If the issue 
   remains please [share your Site Health information](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
   and we can investigate further.
 * We have more details on a similar error [on the plugin website](https://sitekit.withgoogle.com/documentation/troubleshooting/analytics/#mapselect).
   The error described here, which differs slightly, is also as a result of particular
   configurations applied from a caching or optimization plugin.
 * Let me know if you have any questions with the above.
 *  Thread Starter [cyaniccypher](https://wordpress.org/support/users/cyaniccypher/)
 * (@cyaniccypher)
 * [4 years ago](https://wordpress.org/support/topic/site-kit-errors-on-pages/#post-15695659)
 * Hello,
 * I shared the site health information using the form.
 * I will work on the other item with the WP Optimize Plug in.
 *  Thread Starter [cyaniccypher](https://wordpress.org/support/users/cyaniccypher/)
 * (@cyaniccypher)
 * [4 years ago](https://wordpress.org/support/topic/site-kit-errors-on-pages/#post-15695667)
 * The WP Optimize minification feature was causing the errors. Once disabled the
   errors went away. Thanks for the help.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [4 years ago](https://wordpress.org/support/topic/site-kit-errors-on-pages/#post-15695668)
 * Many thanks for sharing. While I try and recreate this error please go ahead 
   and temporarily deactivate WP Optimize before checking does the error remain 
   when you check the Site Kit admin toolbar.
 * Edit: Looks like you’ve already determined the cause! You can keep your WP Optimize
   plugin activated. You just need to apply the exclusion for the Site Kit JavaScript
   resources, within the plugins minification settings:
    `/wp-content/plugins/google-
   site-kit/`
 * ![](https://i0.wp.com/i.imgur.com/1RmDH86.png?ssl=1)
 * Let me know how you get on with this, or if you need further assistance. Note
   that you may need to purge your WP Optimize cache also, after applying any change.
    -  This reply was modified 4 years ago by [James Osborne](https://wordpress.org/support/users/jamesosborne/).
 *  Thread Starter [cyaniccypher](https://wordpress.org/support/users/cyaniccypher/)
 * (@cyaniccypher)
 * [4 years ago](https://wordpress.org/support/topic/site-kit-errors-on-pages/#post-15695722)
 * Thanks, I have added the exclusion it seems to be working correctly.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [4 years ago](https://wordpress.org/support/topic/site-kit-errors-on-pages/#post-15695810)
 * Nice job! Thanks for the update.
 * If you run into any further errors, or if you have any queries, be sure to reach
   out to us here in the forums.
 * Be sure to also leave your [plugin feedback](https://wordpress.org/support/plugin/google-site-kit/reviews/#new-post)
   if you’ve been a Site Kit user for some time now.

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

The topic ‘Site Kit errors on pages’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/site-kit-errors-on-pages/#post-15695810)
 * Status: resolved