Resolving the Site Kit Dashboard Widget Error After Update
Content
If you've recently updated your 'Site Kit by Google' plugin and are now greeted with a frustrating error message on your dashboard, you're not alone. A widespread issue occurred after the release of version 1.149.0, causing a widget to fail with errors like Cannot read properties of undefined (reading 'metricValues') or t is undefined. This guide will explain the problem and walk you through the confirmed solutions.
Understanding the Problem
The error typically appears in the 'Track your site’s traffic over time' widget and includes a long stack trace pointing to components like UserDimensionsPieChart and DashboardAllTrafficWidgetGA4. This was a bug introduced in 'Site Kit by Google' version 1.149.0 that prevented the plugin from correctly processing Google Analytics 4 data for display in the WordPress dashboard.
Important Note: This was purely a display issue within your WordPress admin panel. The 'Site Kit by Google' team confirmed that Google Analytics was still collecting your site's data correctly the entire time. No historical data was lost.
How to Fix the Site Kit Widget Error
The primary and most effective solution is to update the plugin. The development team addressed the bug in a subsequent release.
Solution 1: Update to the Latest Version
The fix was officially released in version 1.149.1. Please follow these steps:
- Navigate to your WordPress admin dashboard.
- Go to Plugins → Installed Plugins.
- Find 'Site Kit by Google' in the list.
- If an update is available, you will see a notification. Click Update Now.
- After updating, refresh your dashboard page to see if the widget loads correctly.
Solution 2: Clear Your Browser and Site Cache
Sometimes, after updating the plugin, your browser or a caching plugin on your site might serve an old cached version of the dashboard. To rule this out:
- Clear your browser's cache and cookies. Alternatively, test by opening your dashboard in an incognito or private browser window.
- If you use a caching plugin (e.g., WP Rocket, W3 Total Cache, etc.), clear its cache as well.
- Check if the error persists.
Solution 3: Check from a Different Browser or Device
As a simple troubleshooting step, try accessing your WordPress dashboard from a different web browser (e.g., Chrome, Firefox, Safari) or a different device. This can help confirm the issue is resolved server-side after the update and isn't related to your local browser environment.
What If the Error Persists?
For the vast majority of users, updating to version 1.149.1 or later resolved the problem immediately. If you have updated the plugin and cleared all caches but still see the error, it may be helpful to check your site's overall health. Navigate to Tools → Site Health in your WordPress admin to ensure there are no other underlying configuration issues.
This bug was a specific incident related to the version 1.149.0 release. If you encounter a similar error with a much newer version of the plugin, the cause is likely different and would require further investigation.
Related Support Threads Support
-
Error in Widgethttps://wordpress.org/support/topic/error-in-widget-10/
-
Error in widgethttps://wordpress.org/support/topic/error-in-widget-14/
-
Google Site Kit. An error prevented this Widget from being displayed properly.https://wordpress.org/support/topic/google-site-kit-an-error-prevented-this-widget-from-being-displayed-properly/
-
[NSFW] Track your site’s traffic over time[Find out how your audience is growing]https://wordpress.org/support/topic/track-your-sites-traffic-over-timefind-out-how-your-audience-is-growing/
-
Problems with widget? Said to report it exactly here?https://wordpress.org/support/topic/problems-with-widget-said-to-report-it-exactly-here/
-
An error prevented this Widget from being displayed properly. Report the exact chttps://wordpress.org/support/topic/an-error-prevented-this-widget-from-being-displayed-properly-report-the-exact-c/
-
Error in Widget An error prevented this Widget from being displayed properly.https://wordpress.org/support/topic/error-in-widget-an-error-prevented-this-widget-from-being-displayed-properly-4/
-
Sudden Google Sitekit Dashboard Widget issuehttps://wordpress.org/support/topic/sudden-google-sitekit-dashboard-widget-issue/
-
Traffic Displaying Errorhttps://wordpress.org/support/topic/traffic-displaying-error/
-
Error when viewing dashboardhttps://wordpress.org/support/topic/error-when-viewing-dashboard/
-
SiteKit ‘error in widget’https://wordpress.org/support/topic/sitekit-error-in-widget/
-
What is an issue with SiteKithttps://wordpress.org/support/topic/what-is-an-issue-with-sitekit/
-
errorhttps://wordpress.org/support/topic/error-1925/
-
t is undefined in UserDimensionsPieCharthttps://wordpress.org/support/topic/t-is-undefined-in-userdimensionspiechart/
-
error in widget SiteKithttps://wordpress.org/support/topic/error-in-widget-sitekit/
-
Error in Widgethttps://wordpress.org/support/topic/error-in-widget-17/
-
Error in Widgethttps://wordpress.org/support/topic/error-in-widget-5/
-
Error in Widget: Goggle site kithttps://wordpress.org/support/topic/error-in-widget-goggle-site-kit/
-
Error in Widget: how your audience is growinghttps://wordpress.org/support/topic/error-in-widget-how-your-audience-is-growing/
-
Error in Widgethttps://wordpress.org/support/topic/error-in-widget-11/