Google Analytics Extension not refreshing

First, this extension is fully set and working it will get Google Analytics data — if I force it!

I go to Extentions > Google Analytics > Settings > Click Refresh Data. It does something in the background and then returns.

I go to Manage Sites > One of my sites > Scroll down to view Google Analytics… it’s showing the wrong data. There is a blank dropdown to select website and from there I have to click on my site’s title and then the correct data is refreshed and shown.

It appears that Refesh Data is doing nothing and also “Enable schedule data refresh” (once an hour) isn’t working.

The issue seems to be related simply to the fact that the GA widget on the Child Site Overview page doesn’t have the appropriate site selected in the dropdown.

However, in my testing, the appropriate site already is selected once I load the Child Site Overview page:

Can you please check what version of the MainWP Dashboard and MainWP Google Analytics extension you are running?

Also, please try to temporarily deactivate any caching plugins you might have on your Dashboard site.

Thanks for the screen recording.

Again, from what I can tell, the numbers are correct once the site is selected in the dropdown in the widget.

However, the site should be already selected and there shouldn’t be a way to even deselect it, or choose a blank entry in the dropdown so this certainly seems like an issue:
CleanShot 2025-02-06 at 18.03.09

Can you check what version of the Google Analytics extension you are running?
And can you please try in an incognito browser window without any browser extensions?

If you are using Google Analytics extensions v5.0.1 and the issue persists, please open a private Help Desk ticket so we can collect some additional information & investigate further.

Please refer to this Community thread by its URL in the ticket.

A bit more digging and looking at the database. I found:
wp_mainwp_ga4_wp_ga_stats
…shouldn’t this always have each site’s data? Out of 40 sites, I only see 4 listed. Something’s not right.

edit… I just found that clicking on “Refresh Data” adds only one more site to the database. Click it again, one more added… ??? Or, even more weird… while on the Google Analytics Extension Settings page, refreshing the page(!) will add one more to the database… ??? How do we get all sites refreshed with GA data?

Hey @ronr1999

This does sound unusual, as Refresh Data should fetch all GA data associated with the added account.

I cannot find your ticket in our helpdesk system.

Can you please send me a private message and let me know which email address you used to open a ticket?

Let’s forget about the ticket. My last posts are more up-to-date. Yes, I’ve confirmed that that table is not populating.

I cannot reproduce that behavior on my test Dashboard, so I would suggest that our dev team take a closer look at your Dashboard.

If you haven’t, please open a help desk ticket.

And if you did, please let me know which email you used, since I cannot find it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.