• Resolved chrishinde

    (@chrishinde)


    Hi

    I’m trying to set up SiteKit w/ Analytics on a new WP 6.7.2 install (technically a migration, but it’s done from the ground up), but I’m running in to problems.
    When I try to connect it to Analytics, I can’t select an existing Web Data Stream, nor create a new one, because the “Complete setup” button is disabled, with the error message: “Error: Request parameter is empty: propertyIDs.”.
    I CAN (seemingly) set up a new property, but even if I get a congratulating message about completing the setup it still says “Complete setup for Analytics” in the settings, and I get the same error message in the settings.

    I also tried creating a new Analytics account, instead of using one that I used for the same site/domain earlier. And it seemed to get me further (the setup seems to be complete, etc), but I still ended up with the same error, and there is no Data Stream in the settings (and I can’t create a new one).

    Thanks!

    Screencast of me setting up a new property, and the issues: https://www.youtube.com/watch?v=MT3cBVPLeAQ

    The (latest) errors in the console, in the settings:

    googlesitekit-vendor…14da516df44edd.js:1 
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/analytics-4/…ent-settings?propertyID=482211432&webDataStreamID=10392938112&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:enhanced-measurement-settings type:modules identifier:analytics-4 error:"Request parameter is empty: propertyID."
    googlesitekit-vendor…14da516df44edd.js:1
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/analytics-4/data/webdatastreams?propertyID=482211432&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:webdatastreams type:modules identifier:analytics-4 error:"Request parameter is empty: propertyID."
    googlesitekit-vendor…14da516df44edd.js:7 Uncaught TypeError: Cannot read properties of undefined (reading 'find')
    at Object.onSelected (googlesitekit-module…10485da.js:72:10133)
    at Object.notifySelected (googlesitekit-vendor…df44edd.js:7:978925)
    at push.e.exports.148.t.handleItemAction (googlesitekit-vendor…df44edd.js:7:974737)
    at t.handleSelect (googlesitekit-vendor…df44edd.js:7:951907)
    at Object.notifyAction (googlesitekit-vendor…df44edd.js:7:987811)
    at push.e.exports.42.t.handleClick (googlesitekit-vendor…df44edd.js:7:994879)
    at t.handleClick (googlesitekit-vendor…df44edd.js:7:984106)
    at t.handleClick (googlesitekit-vendor…f44edd.js:7:1000946)
    at Object.s (googlesitekit-vendor…df44edd.js:7:658293)
    at d (googlesitekit-vendor…df44edd.js:7:658436)

    Errors in the console, in the Dashboard:

    googlesitekit-vendor…14da516df44edd.js:1 
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/analytics-4/…5-03-14&orderby%5B0%5D%5Bdimension%5D%5BdimensionName%5D=date&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:report type:modules identifier:analytics-4 error:"Request parameter is empty: metrics."
    googlesitekit-vendor…14da516df44edd.js:1
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/analytics-4/…rs%5BsessionDefaultChannelGrouping%5D%5B0%5D=Organic%20Search&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:report type:modules identifier:analytics-4 error:"Request parameter is empty: metrics."
    googlesitekit-vendor…14da516df44edd.js:1
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/analytics-4/…0Search&orderby%5B0%5D%5Bdimension%5D%5BdimensionName%5D=date&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:report type:modules identifier:analytics-4 error:"Request parameter is empty: metrics."
    googlesitekit-vendor…14da516df44edd.js:1
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/analytics-4/…0Search&orderby%5B0%5D%5Bdimension%5D%5BdimensionName%5D=date&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:report type:modules identifier:analytics-4 error:"Request parameter is empty: metrics."
    googlesitekit-vendor…14da516df44edd.js:1
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/analytics-4/data/container-lookup?destinationID=G-4KCVXB2LMK&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:container-lookup type:modules identifier:analytics-4 error:"Request parameter is empty: destinationID."
    googlesitekit-vendor…14da516df44edd.js:1
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/analytics-4/…ent-settings?propertyID=482211432&webDataStreamID=10392938112&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:enhanced-measurement-settings type:modules identifier:analytics-4 error:"Request parameter is empty: propertyID."
    googlesitekit-vendor…14da516df44edd.js:1
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/analytics-4/…ame%5D=screenPageViews&orderby%5B0%5D%5Bdesc%5D=true&limit=10&_locale=user 400 (Bad Request)
    googlesitekit-vendor…14da516df44edd.js:7 TypeError: Cannot read properties of null (reading '0')
    at googlesitekit-module…58697f7.js:19:39144
    at Array.forEach (<anonymous>)
    at l (googlesitekit-module…58697f7.js:19:39098)
    at SearchConsoleStats (googlesitekit-module…758697f7.js:1:25950)
    at Fo (googlesitekit-vendor…df44edd.js:7:715781)
    at Ti (googlesitekit-vendor…df44edd.js:7:762031)
    at Qj (googlesitekit-vendor…df44edd.js:7:754579)
    at Kj (googlesitekit-vendor…df44edd.js:7:754504)
    at wa (googlesitekit-vendor…df44edd.js:7:751534)
    at googlesitekit-vendor…df44edd.js:7:703178
    googlesitekit-main-d…1bedf8348b6b3.js:84 Widget error: TypeError: Cannot read properties of null (reading '0')
    at googlesitekit-module…58697f7.js:19:39144
    at Array.forEach (<anonymous>)
    at l (googlesitekit-module…58697f7.js:19:39098)
    at SearchConsoleStats (googlesitekit-module…758697f7.js:1:25950)
    at Fo (googlesitekit-vendor…df44edd.js:7:715781)
    at Ti (googlesitekit-vendor…df44edd.js:7:762031)
    at Qj (googlesitekit-vendor…df44edd.js:7:754579)
    at Kj (googlesitekit-vendor…df44edd.js:7:754504)
    at wa (googlesitekit-vendor…df44edd.js:7:751534)
    at googlesitekit-vendor…df44edd.js:7:703178
    {componentStack: '\n in SearchConsoleStats\n in div\n in div\n … in ThemeProvider\n in StrictMode\n in Root'}
    googlesitekit-vendor…14da516df44edd.js:7 TypeError: Cannot read properties of null (reading '0')
    at googlesitekit-module…758697f7.js:23:1015
    at yt (googlesitekit-vendor…16df44edd.js:1:7921)
    at Wa (googlesitekit-vendor…6df44edd.js:1:44614)
    at p (googlesitekit-module…4758697f7.js:23:975)
    at m (googlesitekit-module…758697f7.js:23:1369)
    at Overview (googlesitekit-module…758697f7.js:1:19183)
    at Fo (googlesitekit-vendor…df44edd.js:7:715781)
    at Ti (googlesitekit-vendor…df44edd.js:7:762031)
    at Qj (googlesitekit-vendor…df44edd.js:7:754579)
    at Kj (googlesitekit-vendor…df44edd.js:7:754504)
    googlesitekit-main-d…1bedf8348b6b3.js:84 Widget error: TypeError: Cannot read properties of null (reading '0')
    at googlesitekit-module…758697f7.js:23:1015
    at yt (googlesitekit-vendor…16df44edd.js:1:7921)
    at Wa (googlesitekit-vendor…6df44edd.js:1:44614)
    at p (googlesitekit-module…4758697f7.js:23:975)
    at m (googlesitekit-module…758697f7.js:23:1369)
    at Overview (googlesitekit-module…758697f7.js:1:19183)
    at Fo (googlesitekit-vendor…df44edd.js:7:715781)
    at Ti (googlesitekit-vendor…df44edd.js:7:762031)
    at Qj (googlesitekit-vendor…df44edd.js:7:754579)
    at Kj (googlesitekit-vendor…df44edd.js:7:754504)
    {componentStack: '\n in Overview\n in div\n in div\n in Forw… in ThemeProvider\n in StrictMode\n in Root'}
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:report type:modules identifier:analytics-4 error:"Request parameter is empty: metrics."
    googlesitekit-vendor…14da516df44edd.js:1
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/analytics-4/…ainer-destinations?accountID=6273478747&containerID=208743252&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:container-destinations type:modules identifier:analytics-4 error:"Request parameter is empty: accountID."
    googlesitekit-vendor…14da516df44edd.js:1
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/pagespeed-in…peed?strategy=mobile&url=https%3A%2F%2Fchris.hindefjord.se%2F&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:pagespeed type:modules identifier:pagespeed-insights error:"Request parameter is empty: strategy."
    googlesitekit-vendor…14da516df44edd.js:1
    GET https://chris.hindefjord.se/wp-json/google-site-kit/v1/modules/pagespeed-in…eed?strategy=desktop&url=https%3A%2F%2Fchris.hindefjord.se%2F&_locale=user 400 (Bad Request)
    googlesitekit-api-bc…e15d079907a56.js:12 Google Site Kit API Error method:GET datapoint:pagespeed type:modules identifier:pagespeed-insights error:"Request parameter is empty: strategy."
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out @chrishinde, and appreciate you sharing the additional details. It sounds like there may be something at host level blocking the creation of a new property or account when using Site Kit to do so. To confirm this, you can see if you’re able to create a property or account from this disposable WordPress site, which I suspect you will be.

    Another troubleshooting check you can perform, is to check from another WordPress site on the same hosting platform as your existing site. If the same does not occur from another site on the same hosting platform, and you are able to proceed, this may also point to a plugin or security setting on your main site blocking creation of a property or account within Site Kit. If this is the case, please share your Site Health information and I can check your current site setup and plugins which are active.

    As a workaround to the issue you’re facing, have you tried creating a new Google Analytics or account from analytics.google.com? If you, you will then be able to connect this within Site Kit.

    Thread Starter chrishinde

    (@chrishinde)

    Thanks for your response.

    I had some free time today, and tried a numerous of things (like disabling everything else, starting a site from scratch, etc.). I also tried setting up Site Kit on another WP site on the same server, where it did work.
    After some back-and-forth I noticed that there was a slight difference in the site/domain conf-files (for Nginx), where the other domain had this:

            location ~ ^/wp-json/ {
    rewrite ^/wp-json/(.*?)$ /?rest_route=/$1 last;
    }

    So after adding that to the .conf for this site, I got Site Kit to work, using my original stream.
    (I set up the other WP site nearly 2 years ago, and I have no idea from where I got that configuration, as far as I can find it’s not included in any setup guide. Also had no other issues on this site)

    Plugin Support James Osborne

    (@jamesosborne)

    Nice troubleshooting @chrishinde, and appreciate you sharing details on your configuration file. If others encounter the same error, we can keep this in mind.

    If you run into any further issues, or if you have any Site Kit queries, be sure to get in touch. Best of luck.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.