• Resolved digitunity

    (@digitunity)


    Hello,

    I’m struggling to get Google SiteKit to work properly in our staging/production environments.

    My setup is as follows:

    I have one staging server (e.g. dev.mydomain.org) and multiple live production servers (e.g. mydomain.org) in multiple data centers across the United States.

    Admins only ever log into the staging WordPress backend, nobody will ever log into the live production servers.

    I followed the instructions from this support article:
    https://sitekit.withgoogle.com/documentation/using-site-kit/staging/

    I installed the Google SiteKit and Google SiteKit Developer plugins and linked mboth my older GA and newer G4 properties to the SiteKit install as well as specified my production URL (e.g. mydomain.org) in the Developer plugin settings. I left all other fields blank.

    Whenever I access my staging server (dev.mydomain.org), it says that the URL of my site has changed (old: mydomain.org, new: dev.mydomain.org) and I need to reconnect SiteKit in order for it to work.

    I want to have data visible from my production environment G4 property on the staging server. I do NOT want to track any hits to my staging environment.

    How do I get the plugin to stop complaining that the URL is wrong and forcing a reconnect?

    Thanks for any help you can provide… been struggling with this for over a year.

    • This topic was modified 1 year, 11 months ago by digitunity.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Adam Dunnage

    (@adamdunnage)

    Hi @digitunity thanks for getting in touch. When you get the URL has changed message on your staging site, have you then tried to reconnect Site Kit as suggested? If you have do you then get the same URL has changed message? It would be great if you could share a recording of this experience. You can use a service such as Loom to record and share the URL here.

    Would you also be able to share both your live and staging site URLS? If you’d prefer to do this privately then you can do so when sharing your Site Health Information with this form.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    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 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using SiteKit with a self-hosted WordPress site’ is closed to new replies.