Using SiteKit with a self-hosted WordPress site
-
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.
- The topic ‘Using SiteKit with a self-hosted WordPress site’ is closed to new replies.