Thanks for providing these additional insights @roz333. From reviewing your site I noticed some mixed content errors, and these can lead to REST errors. Can you ensure that the http version of your site redirects to http? At present both are accessible. After doing so, please attempt Site Kit set up on this site once more.
I also noticed various optimizations performed that may also be impacting Site Kit setup. You’ll see various console errors when visiting your site, some which indicated mixed content as mentioned above, while others referencing your optimization plugins. If you managed to make your site fully https only, and the same WordPress REST API notice appears please follow the steps below:
- Login to your live site from a Chrome browser incognito window.
- Install and activate the Health Check & Troubleshooting plugin.
- Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
- 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“.
- Attempt to setup Site Kit once more or check for the same error.
Let me know if you have any questions with the above.
I installed manually google analytics G4 on my website alongside with UA google analytic but It seems it doesn’t work properly, It doesn’t show real number of users and although I have connected both codes via google console,
The changes you see here may be due to what GA4 highlights as “Users”. With Universal Analytics (UA) the “Total Users” metric highlights all site visitors simply as “Users”. If you then view your GA4 data from analytics.google.com the “Users” metric refers to “Active Users”, which can differ from the “Total Users” metric.
To summarize, GA4 highlights your “Active Users” whereas UA highlights the “Total Users“. Active means users who revisit your site, or navigate between your site. Total users can include one time visitors. The metrics between both are unlikely to match.
The product experts over at the Analytics Help Center can advise on the above more than we can here, but do let me know of the above regarding troubleshooting your REST related issue.