jatjnrdev
Forum Replies Created
-
I’m sorry, I’ve slept since making that comment! I believe that was the request to try and fill the project and stream dropdowns in the analytics settings, so no I don’t think that’s while it was disabled.
Yes, the status shows the following:
The REST API did not behave correctly Performance
The REST API is one way that WordPress and other applications communicate with the server. For example, the block editor screen relies on the REST API to display and save your posts and pages.
The REST API did not process the
context
query parameter correctlyConfirmed, getting 400 on request:
https://www.[my-site].com/wp-json/google-site-kit/v1/modules/analytics-4/data/properties?accountID=....&_locale=user
I’ve attached a screenshot above.
Disabling all possible modules in the Site Kit suite, the error still showed on the dashboard exactly like it had.
Interestingly,
When I refresh, and re-open the editor for analytics I get this. Looks like it’s having trouble communicating to get the property/stream.
Did some additional investigating:
Network tab shows calls to google directly all coming back with 200 OK, but every request to site-kit api on my domain coming back with 400 errors:
{"code":"missing_required_param","message":"Request parameter is empty: metrics.","data":{"status":400}}
You can see from the requests, that it is passing up metrics params:
metrics%5B0%5D%5Bname%5D=screenPageViews
metrics%5B1%5D%5Bname%5D=sessions
metrics%5B2%5D%5Bname%5D=engagementRate
metrics%5B3%5D%5Bname%5D=averageSessionDuration
dimensions%5B0%5D%5Bname%5D=pagePath
startDate=2023-06-02
endDate=2023-06-29
orderby%5B0%5D%5Bmetric%5D%5BmetricName%5D=screenPageViews
orderby%5B0%5D%5Bdesc%5D=true
limit=10
_locale=userHello, thanks for the quick response!
- Done – used the form
- Still happens on chrome incognito
- Yes
I’ve also used troubleshoot mode to disable all plugins other than site kit, and it still showed the same error, so it seems unlikely that it’s a plugin.
Also used troubleshoot mode to go to default WP theme, and still no difference.
Hope this helps!
Oh, I also recall the site health giving me an error that “The REST API did not behave correctly”, something about it not processing the ‘context’ query param. This is maybe potentially related? I wonder if my PHP version is too high.