Title: google_api_connection_fail
Last modified: November 26, 2023

---

# google_api_connection_fail

 *  Resolved [willaxa](https://wordpress.org/support/users/willaxa/)
 * (@willaxa)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/)
 * Hello,
 * I’m getting a google_api_connection fail on my Site Kit plugin. 🙁
 * I field a Google Forms as well.
 * Thanks,
 *  wiL
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle_api_connection_fail-56%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17232011)
 * Thanks for reaching out [@willaxa](https://wordpress.org/support/users/willaxa/),
   and sharing your Site Health information. It sounds like there is something either
   at host level or with your plugin environment blocking communication between 
   your site and the Site Kit service. So we can determine more on this, please 
   share the following:
    1. Do you see any warnings or errors when checking yourSite Health status ([_Tools > Site Health > Status_](https://i.imgur.com/wSRWwon.png)),
       which differs from your Site Health information requested above? Such errors
       may include REST endpoint references.
    2. Have you been able to set up Site Kit on this site previously, or on any other
       sites on the same hosting platform?
 * Note also that I did notice some plugins active which, with some configuration,
   could impact Site Kit setup. Once we have the above I will provide some troubleshooting
   checks to help determine any particular cause.
 * Let me know if you have any questions with the above.
 *  Thread Starter [willaxa](https://wordpress.org/support/users/willaxa/)
 * (@willaxa)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17233254)
 * Hi James,
 * Yes we have Site Kit installed for almost 8 years 🙂 It just suddenly stopped
   a few days ago.
 * It seems like all connection to Google has been block from the website hosting.
 * I’ve been coordinating with NameHero.com but they keep on telling me to empty
   my browser cache. I switched browsers and gone incognito mode but I still get
   the same Google API error.
 * We have deactivated WordFence and Litecache plugin but still the same issue. 
   Then we deactivated all plugins but Site Kit and tried again but still the same
   issue.
 * [https://app.screencast.com/zhYO7iblGViON](https://app.screencast.com/zhYO7iblGViON)
 * REST API is available [https://app.screencast.com/YtySQic6rGC9C](https://app.screencast.com/YtySQic6rGC9C)
 * Thanks for checking in,
 *  wiL
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17233416)
 * Thanks for the update [@willaxa](https://wordpress.org/support/users/willaxa/).
   Based on the additional information, let’s try a few things which may help us
   to determine where the fault lies. Please share the following:
    1. Can you confirm no issues when setting up Site Kit from this temporary WordPress
       site? This will help rule out local, network or browser based issues.
    2. Do you have any other WordPress sites on the same hosting platform from where
       you can attempt Site Kit setup from?
 * Assuming you can complete set up from the disposable site, let me know if you’re
   comfortable making come cURL commands similar to those requested in [this support topic](https://wordpress.org/support/topic/google_api_connection_fail-50/).
   This will help determine if your site is blocked based on your IPv6 address.
 * Let me know if you have any questions with the above.
 *  Thread Starter [willaxa](https://wordpress.org/support/users/willaxa/)
 * (@willaxa)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17233645)
 * Unfortunately we can’t add a temp domain.
 * I have forwarded this to our hosting provider, hopefully they can check the cURL
   commands on their end. We’ll get back to you as soon as they respond. Thanks,
 *  wiL
 *  Thread Starter [willaxa](https://wordpress.org/support/users/willaxa/)
 * (@willaxa)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17234019)
 * Hello James,
 * This is the response the hosting gets when running the cURL command.
 *     ```wp-block-code
       curl -I https://sitekit.withgoogle.com
   
       HTTP/2 200 
       content-type: text/html
       vary: Accept-Encoding
       x-cloud-trace-context: 75a669f1835b5db37b8060c6cf7fe1c3
       date: Mon, 27 Nov 2023 21:23:21 GMT
       server: Google Frontend
       alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
       ```
   
 * Even though the response is 200, we still seem to be getting the same problem.
 * gurpreetji.ca – [165.140.68.129]
 * Any help would be appreciated,
 *  wiL
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17234994)
 * Thanks for the follow up [@willaxa](https://wordpress.org/support/users/willaxa/).
   Unfortunately the cURL command provided only includes a standard cURL check. 
   Would it be possible for you to ask your hosting provider to check both the below,
   which can help determine whether your site is impacted by an IpV6 only block?
 * `curl -4 -I https://sitekit.withgoogle.com`
   _The above will check the status 
   if communication over IPv4_`curl -6 -I https://sitekit.withgoogle.com`_The above
   will check the status if communication over IPv_6
 * I suspect you may encounter a 403 error if communicating over IPv6 (the second
   command). If this is the case, please share your sites IPv6 address. I didn’t
   notice any AAAA records for your site which can help to determine this.
 * Let me know if you have any questions with the above.
 *  Thread Starter [willaxa](https://wordpress.org/support/users/willaxa/)
 * (@willaxa)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17235942)
 * Thank you James, I’ll pass this on to our host. 🙂
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17235968)
 * Great! Feel free to touch base here if you have any questions in the meantime.
 *  Thread Starter [willaxa](https://wordpress.org/support/users/willaxa/)
 * (@willaxa)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17236317)
 * Hello James,
 * Here are the results for both the cURL commands:
 *     ```wp-block-code
       curl -4 -I https://sitekit.withgoogle.com
       HTTP/2 200
       content-type: text/html
       vary: Accept-Encoding
       x-cloud-trace-context: 2451677ac5a6c522b1bda9294eded9ad
       date: Tue, 28 Nov 2023 14:22:04 GMT
       server: Google Frontend
       alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
       ```
   
 *     ```wp-block-code
       curl -6 -I https://sitekit.withgoogle.com
       curl: (7) Couldn't connect to server
       ```
   
 * IPv6 is not yet available for use on NameHero accounts. Hence, there is no IPv6
   address available for your website which could be the reason for the error message
   while running the second command.
 * Is there anything else we can check?
 * Thanks,
    wiL
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17236441)
 * Appreciate the additional information [@willaxa](https://wordpress.org/support/users/willaxa/).
   Considering IPv6 is disabled at host level, and you are encountering a 200 response,
   let’s perform another check via the following:
    1. Login to your live site from [a ](https://i.imgur.com/ALzgiHp.png)[Chrome browser incognito window](https://i.imgur.com/ALzgiHp.png).
    2. Install and activate th[e ](https://wordpress.org/plugins/health-check)[Health Check & Troubleshooting plugin](https://wordpress.org/plugins/health-check).
    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. Check for the same error.
 * I’m aware you did perform a similar check, with only Site Kit active, however,
   the above will use a core them while also checking from an incognito session 
   which can help rule out browser features or extensions impacting set up.
 * Let me know if you have any questions with the above.
 *  Thread Starter [willaxa](https://wordpress.org/support/users/willaxa/)
 * (@willaxa)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17236877)
 * Hello James,
 * Unfortunately it’s the same result even after installing and activating the Health
   Check & Troubleshooting plugin.
 * [https://app.screencast.com/cEQmGaSQi4Gu5](https://app.screencast.com/cEQmGaSQi4Gu5)
 * Do you have any other ways for us to check the connection?
 * Thanks,
    wiL
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17238167)
 * Thanks for checking [@willaxa](https://wordpress.org/support/users/willaxa/).
   In that case this does indicate a possible configuration or issue at host level.
   There are a couple of ways to check this further. In order to do so, please share
   the following:
    1. Can you confirm no issues setting up Site Kit when using [this disposable WordPress site](https://tastewp.org/plugins/google-site-kit/)?
    2. As I noticed some additional .htaccess rules, can you visit your permalinks 
       page (Settings > Permalinks) and press the “Save change” button? This will recreate
       a fresh .htaccess file for you. I ask as rules applied at .htaccess level can
       impact Site Kit behavior.
    3. Do you see any warnings or errors when checking yourSite Health status  ([_Tools > Site Health > Status_](https://i.imgur.com/wSRWwon.png)),
       which differs from your Site Health information previously shared?
 * Note also that in relation to not being able to create another WordPress site
   from another domain on the same hosting platform, you may be able to create a
   subdomain off your parent domain. This could be used to test another WordPress
   site on the same hosting platform, helping to pinpoint the cause.
 *  Thread Starter [willaxa](https://wordpress.org/support/users/willaxa/)
 * (@willaxa)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17239248)
 * Hi James,
 * We have changed web hosting from Namehero. It seems like our server was blocked
   from accessing Google services.
 * It started moving when we changed hosting.
 * Too bad we couldn’t find a solution with Namehero, but I’m glad it’s working 
   now.
 * Thanks,
    wiL
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17239258)
 * Thanks for the update [@willaxa](https://wordpress.org/support/users/willaxa/).
   Glad to hear all is working now as expected. If you run into any further issues,
   you know where to find us. Best of luck!

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

The topic ‘google_api_connection_fail’ 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/)

 * 14 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/google_api_connection_fail-56/#post-17239258)
 * Status: resolved