Title: “Missing site_id or site_code” during setup
Last modified: August 28, 2025

---

# “Missing site_id or site_code” during setup

 *  Resolved [jimojon](https://wordpress.org/support/users/jimojon/)
 * (@jimojon)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/)
 * Hello,
   I am experiencing a problem that seems very similar to the one described
   here :[https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup/](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup/)
 * Uncaught Exception: Missing site_id or site_code parameter for setup URL.
   in **/
   home/bas/web/app/plugins/google-site-kit/includes/Core/Authentication/Google_Proxy.
   php** on line **139**I’m using Bedrock ([https://roots.io/bedrock/](https://roots.io/bedrock/))
   and my admin is on [https://[REDACTED]/wp/wp-admin/](https://[REDACTED]/wp/wp-admin/)
   To my knowledge the plugin had not been installed previously.
 * The site_code seems missing in the call stack:
    1. `Google\S\C\A\Google_Proxy::setup_url(array)`
       app/plugins/google-site-kit/includes/
       Core/Authentication/Setup.php:393
    2. `Google\S\C\A\Setup::redirect_to_proxy('sitekit-[REDACTED]', array)`
       app/plugins/
       google-site-kit/includes/Core/Authentication/Setup.php:304
    3. `Google\S\C\A\Setup::handle_action_exchange_site_code('')`
       wp-includes/class-
       wp-hook.php:324
    4. `WP_Hook::apply_filters('', array)`
       wp-includes/class-wp-hook.php:348
    5. `WP_Hook::do_action(array)`
       wp-includes/plugin.php:517
    6. `do_action('admin_action_googles...y_exchange_site_code')`
       wp-admin/admin.php:
       420
    7. `require_once('/home/bas/web/app/wp-admin/admin.php')`
       wp-admin/index.php:10
 * Any help to fix this ?
   ThxJonas

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

1 [2](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/page/2/?output_format=md)

 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18617381)
 * Hi [@jimojon](https://wordpress.org/support/users/jimojon/), thanks for getting
   in touch and for sharing all the information that you have. I can take a look
   at this for you to hopefully find the cause and get you up and running with Site
   Kit. Please can you share the following:
    1. Your [Site Health information](https://i.imgur.com/Rtkmsba.png). You can [use this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
       to share privately if preferred.
    2. Have you recently migrated the site or changed the site name or WordPress admin
       path?
 * This issue can happen when the checks for the site records are mismatched. This
   can happen when the records have changed with a site migration etc.
 * If you have migrated or anything has changed as questioned above, if you can 
   revert back to the previous setup and perform a [Site Kit reset](https://sitekit.withgoogle.com/documentation/using-site-kit/reset/),
   that should reset your original records and allow you to switch back to the new
   setup and complete Site Kit setup.
 * We may need to request a check on your records from the team but before that 
   I will review the information you share as we may be able to do something ourselves
   to fix the issue.
 *  Thread Starter [jimojon](https://wordpress.org/support/users/jimojon/)
 * (@jimojon)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18617772)
 * Hi [@adamdunnage](https://wordpress.org/support/users/adamdunnage/),
   1. Done2.
   No for bothJonas
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18617878)
 * [@jimojon](https://wordpress.org/support/users/jimojon/) Thanks for sharing the
   information. I can see from the site health information you have shared that 
   you have many plugins active on your site. It’s possible that there may be a 
   plugin active on your site causing a conflict resulting in this error.
 * Please could you try running through the troubleshooting steps [here](https://sitekit.withgoogle.com/documentation/troubleshooting/using-troubleshooting-mode/)
   to see if you encounter the same while in troubleshooting mode with just Site
   Kit active ?
 *  Thread Starter [jimojon](https://wordpress.org/support/users/jimojon/)
 * (@jimojon)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18618300)
 * Thanks Adam. Same error in troubleshooting mode with just Site Kit active.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18618817)
 * [@jimojon](https://wordpress.org/support/users/jimojon/) Thanks for the update.
   There are a few other tests that would be useful at this stage. Please if possible
   could you try the following:
    1. Setting up a fresh site and WordPress install using Bedrock again for this. 
       Only install Site Kit and try to set up the plugin on this site to see if you
       encounter the same issue.
    2. Go to [this URL](http://astewp.com/create/NMS/8.0/6.8/google-site-kit/twentytwenty?ni=true&redirect=admin.php%3Fpage%3Dgooglesitekit-splash)
       which creates a temporary WordPress site for testing which comes with Site Kit
       pre-installed. Try to set up Site Kit on this site to see if you encounter any
       issues.
 * If you could let me know the outcome of both scenarios that will help me to understand
   if the issue could be something related to your current site configuration. Let
   me know if you have any questions on the above.
 *  Thread Starter [jimojon](https://wordpress.org/support/users/jimojon/)
 * (@jimojon)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18618842)
 * Thanks [@adamdunnage](https://wordpress.org/support/users/adamdunnage/)
 * 1. Unfortunately, I won’t be able to do it quickly
   2. Its working on TastewpJonas
    -  This reply was modified 8 months, 2 weeks ago by [jimojon](https://wordpress.org/support/users/jimojon/).
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18618849)
 * [@jimojon](https://wordpress.org/support/users/jimojon/) That’s no problem, it
   would be useful to know the results of the 1st suggestion as this could point
   to the issue being with your current sites configuration.
 * We can as mentioned above request a check on your site records but that can take
   some time as well so it would be useful to know the result of testing on another
   Bedrock site before making this request.
 *  Thread Starter [jimojon](https://wordpress.org/support/users/jimojon/)
 * (@jimojon)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18618918)
 * [@adamdunnage](https://wordpress.org/support/users/adamdunnage/) It would be 
   a good idea to request a verification of your records because if my test on a
   new Bedrock installation does not yield any results, it will delay the resolution
   of the problem.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18618923)
 * [@jimojon](https://wordpress.org/support/users/jimojon/) I will request the checks
   but it’s unlikely they’ll be done until next week at this stage but as soon as
   I get the result back I will share them here with you. In the meantime, if you
   could perform the test suggested on your side that would also be helpful.
 * Once I have an update on this I will let you know here.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18618926)
 * [@jimojon](https://wordpress.org/support/users/jimojon/) As it may be useful,
   could I also ask you to share the callback URL you get when experiencing this?
   I just need you to copy the URL in the address bar and share it here or via the
   private form, thanks!
 *  Thread Starter [jimojon](https://wordpress.org/support/users/jimojon/)
 * (@jimojon)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18618958)
 * [@adamdunnage](https://wordpress.org/support/users/adamdunnage/) That’s done
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18618963)
 * [@jimojon](https://wordpress.org/support/users/jimojon/) Perfect, thanks! I have
   requested the check of your records so once I hear back on that I will let you
   know.
 *  Thread Starter [jimojon](https://wordpress.org/support/users/jimojon/)
 * (@jimojon)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18619010)
 * [@adamdunnage](https://wordpress.org/support/users/adamdunnage/) Thank you for
   your reactivity ! I will let you know when I have tested the fresh installation.
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18626287)
 * [@jimojon](https://wordpress.org/support/users/jimojon/) Thanks for you patience
   with this while I awaited the record check. We have reset the records on the 
   service which should hopefully now allow you to now complete the Site Kit set
   up.
 * Please could you try once more and let me know if you have any issues? Thanks!
 *  Plugin Support [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * (@adamdunnage)
 * [8 months ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/#post-18636083)
 * As we didn’t receive a response I’ll mark this as resolved. Feel free to open
   a new support topic if you continue to encounter issues, or reopen this topic
   and we’d be happy to assist.

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

1 [2](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/page/2/?output_format=md)

The topic ‘“Missing site_id or site_code” during setup’ 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

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

 * 24 replies
 * 2 participants
 * Last reply from: [Adam Dunnage](https://wordpress.org/support/users/adamdunnage/)
 * Last activity: [7 months, 1 week ago](https://wordpress.org/support/topic/missing-site_id-or-site_code-during-setup-2/page/2/#post-18671207)
 * Status: resolved