google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.25k stars 291 forks source link

Google Site Kit plugin fails to load data on my WordPress website #9203

Closed divinehealernews closed 2 months ago

divinehealernews commented 2 months ago

Bug Description I'm encountering an issue where the Google Site Kit plugin fails to load data on my WordPress website. The dashboard shows "Data loading failed" for all metrics, and I receive the error message: "Looks like your site is not allowed access to Google account data and can’t display stats in the dashboard."

Steps to Reproduce Install and activate the Google Site Kit plugin on a WordPress site. Set up the plugin by connecting it to the required Google services (Analytics, Search Console, etc.). Navigate to the Site Kit dashboard. Observe that all metrics fail to load, and error messages regarding access to Google account data are displayed. Screenshots

Example screenshot showing the error message in the Site Kit dashboard.

Additional Context WordPress Version: 6.6.1 PHP Version: [Provide your PHP version here] OS: Windows 10 Browser: Chrome Version 115.0.5790.102 Plugin Version: Latest (as of the date of this issue) Device: Desktop PC Potential Causes This issue might be related to permission settings or a bug in how Site Kit interacts with Google services. Despite correct setup and permissions, the plugin is not retrieving or displaying data as expected. Acceptance Criteria The Site Kit plugin should correctly retrieve and display data from Google services after setup, with clear guidance if any permission or configuration issues are encountered. Implementation Brief Investigate the potential causes of data loading failures in the Site Kit plugin and improve the handling of Google account data permissions. Ensure that users receive clear and actionable error messages if the plugin cannot access the necessary data. Test Coverage Implement tests to verify that the Site Kit plugin successfully loads and displays data under various configurations and permission settings. QA Brief Test the plugin to ensure that data loads correctly in the Site Kit dashboard across different environments and configurations. Confirm that the plugin provides clear guidance and error messages if data loading fails. Changelog entry Improved error handling and data retrieval processes in the Google Site Kit plugin to resolve issues related to data loading failures. Screenshot (41)

adamdunnage commented 2 months ago

@divinehealernews Thanks for reaching out and explaining the issue you are facing. We don't provide support for Site Kit through GitHub so could we please ask you to open a support topic including all the information you have shared here and we will be happy to help you out over there.

We look forward to assisting you over in the forums!