Title: Site kit modsecurity error
Last modified: June 4, 2021

---

# Site kit modsecurity error

 *  Resolved [mpoujade](https://wordpress.org/support/users/mpoujade/)
 * (@mpoujade)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/)
 * I am trying to configure Google Analytics and I am getting a modsecurity error.
   Hostgator has already adjusted everything on the server and verified that the
   domain is on withelist, but I still get that error. Can you help me? Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsite-kit-modsecurity-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/topic/site-kit-modsecurity-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/site-kit-modsecurity-error/page/2/?output_format=md)

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14520979)
 * Thanks for reaching out. While any modsecurity or hosting firewall changes can
   only be made at host level we’d be happy to check this from our site once more.
   Before doing so in order to rule out particular conflicts with plugins or your
   WordPress environment can you follow the steps below:
    1. Login to your site from a Chrome browser [incognito window](https://i.imgur.com/ALzgiHp.png)
    2. Install and activate the [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)
       plugin.
    3. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    4. From the same screen click on the “Available Plugins” tab at the top right and
       then click on the “Enable” option next to “Site Kit by Google”
    5. Attempt to setup Site Kit once more
 * You can [exit troubleshooting](https://i.imgur.com/Z4b1bk0.jpg) mode afterwards.
   If the same issue occurs please share the full modsecurity error encountered 
   along with any [console errors](https://imgur.com/KyLAzgH.png) that appear on
   the same page.
 * You can use a service such as Imgur to share a screenshot of the error message
   encountered.
 *  Thread Starter [mpoujade](https://wordpress.org/support/users/mpoujade/)
 * (@mpoujade)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14521496)
 * Hello. Thanks for your answer. I have not been able to solve my problem. I attach
   the text of the error. In the Analytics settings, I select the account and when
   I click the “configure analytics” button, it gives me the following error:
 * “Not Acceptable!
    An appropriate representation of the requested resource could
   not be found on this server. This error was generated by Mod_Security. “
 *  [jlmacedo92](https://wordpress.org/support/users/jlmacedo92/)
 * (@jlmacedo92)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14522041)
 * I’m having the same problem, I contacted the hosting server and they couldn’t
   help me.
    Does anyone know how to solve this problem?
 *  [jlmacedo92](https://wordpress.org/support/users/jlmacedo92/)
 * (@jlmacedo92)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14526391)
 * someone managed to solve?
    -  This reply was modified 5 years ago by [jlmacedo92](https://wordpress.org/support/users/jlmacedo92/).
 *  [Fan Xian](https://wordpress.org/support/users/fairsdrive/)
 * (@fairsdrive)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14526709)
 * I have plus-in the Health Check & Troubleshooting and activate with ” Troubleshoot”
   and enable “Site Kit by Google”.
 * but it can’t work. please send the solution.
    my website is [http://www.etalks.cc](http://www.etalks.cc)
 *  [bragamatta](https://wordpress.org/support/users/bragamatta/)
 * (@bragamatta)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14527613)
 * Same issue here in all my domains.
 * The tip of [@jamesosborne](https://wordpress.org/support/users/jamesosborne/)
   doesn’t work.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14527941)
 * [@mpoujade](https://wordpress.org/support/users/mpoujade/) Thanks for the update.
   In that case it looks like ModSecurity alone and no WordPress environment conflict
   is impacting Analytics setup. We do have a [GitHub issue](https://github.com/google/site-kit-wp/issues/3473)
   from whereby Hostgator stated they’ve whitelisted Site Kit. I’ll follow up with
   them now and keep you updated here.
 * [@bragamatta](https://wordpress.org/support/users/bragamatta/) [@fairsdrive](https://wordpress.org/support/users/fairsdrive/)
   [@jlmacedo92](https://wordpress.org/support/users/jlmacedo92/) Thanks for the
   input. Can you confirm your current hosting provider?
 *  [jlmacedo92](https://wordpress.org/support/users/jlmacedo92/)
 * (@jlmacedo92)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14528039)
 * I’m using a hostgator
 *  [bragamatta](https://wordpress.org/support/users/bragamatta/)
 * (@bragamatta)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14528551)
 * I’m using Hostgator too. I talk to their support and they said it’s unblocked
   already.
 *  Thread Starter [mpoujade](https://wordpress.org/support/users/mpoujade/)
 * (@mpoujade)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14528640)
 * [@jamesosborne](https://wordpress.org/support/users/jamesosborne/) [@jlmacedo92](https://wordpress.org/support/users/jlmacedo92/)
   [@fairsdrive](https://wordpress.org/support/users/fairsdrive/) Thank you very
   much for your help. I contacted google and their support team informs me that
   Hostgator must disable “Mod security” to fix this incompatibility. I haven’t 
   heard from hostgator yet, but I update the information as soon as I receive it.
   Thank you again.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14528714)
 * [@mpoujade](https://wordpress.org/support/users/mpoujade/) [@bragamatta](https://wordpress.org/support/users/bragamatta/)
   [@jlmacedo92](https://wordpress.org/support/users/jlmacedo92/) Many thanks for
   the update.
 * I’ve tested a couple of site installs using WordPress specific hosting with HostGator
   and ran into no issues. Can you confirm are you on shared, WordPress or Cloud
   hosting package?
 *  Thread Starter [mpoujade](https://wordpress.org/support/users/mpoujade/)
 * (@mpoujade)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14528734)
 * [@jamesosborne](https://wordpress.org/support/users/jamesosborne/) Hostgator 
   informs me that: “… it no longer has locks for Mod Security, in shared plans 
   it is not possible to deactivate that system since it is the protection of the
   servers …”.
    -  This reply was modified 5 years ago by [mpoujade](https://wordpress.org/support/users/mpoujade/).
 *  [bragamatta](https://wordpress.org/support/users/bragamatta/)
 * (@bragamatta)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14528741)
 * Shared.That cheap plan of the Hostgator.
    -  This reply was modified 5 years ago by [bragamatta](https://wordpress.org/support/users/bragamatta/).
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14528761)
 * Thanks all. I’ll report back to you here as soon as we have an update from communicating
   with them once more.
 * You may also wish to follow up based on your own plan via the following:
    [https://www.hostgator.com/help/article/secfilterengine-and-secfilterscanpost](https://www.hostgator.com/help/article/secfilterengine-and-secfilterscanpost)
 *  Thread Starter [mpoujade](https://wordpress.org/support/users/mpoujade/)
 * (@mpoujade)
 * [5 years ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/#post-14528852)
 * [@jamesosborne](https://wordpress.org/support/users/jamesosborne/) Just in case
   it’s helpful, I posted a ticket on hostgator for this issue. The number is 243106.
   Thank you

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/topic/site-kit-modsecurity-error/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/site-kit-modsecurity-error/page/2/?output_format=md)

The topic ‘Site kit modsecurity error’ 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/)

## Tags

 * [modsecurity](https://wordpress.org/support/topic-tag/modsecurity/)

 * 27 replies
 * 7 participants
 * Last reply from: [Bethany Chobanian Lang](https://wordpress.org/support/users/mxbclang/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/site-kit-modsecurity-error/page/2/#post-14559872)
 * Status: resolved