Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEO Ranking Widget no longer working #19665

Open
Tony-Baker opened this issue Aug 24, 2022 · 12 comments
Open

SEO Ranking Widget no longer working #19665

Tony-Baker opened this issue Aug 24, 2022 · 12 comments
Labels
Needs priority decision This issue may need to be added to the current milestone by Product Manager

Comments

@Tony-Baker
Copy link

Hi all,

Has anyone else noticed this error and is there a fix for it? I tried deleting the widget and adding again. Sometimes it will work for a session then revert back to the error again. Its the same for all websites.

Tecology-2022-08-24-Web-Analytics-Reports-Tecology-Analytics
.

@sgiehl
Copy link
Member

sgiehl commented Aug 24, 2022

Hi @Tony-Baker
Thanks for creating this issue. I've just checked the SEO widget, and for me t works without issues.
Are you already using the latest version of Matomo?

@Tony-Baker
Copy link
Author

Hi @sgiehl ,

Thanks for the quick response, I really appreciate it. I'm using the latest version of Matamo 4.11.0, self-hosted via vultr. Everything else is working great. The issue seems to be intermittent. I can record a quick video to show you the issue if that helps?

@sgiehl
Copy link
Member

sgiehl commented Aug 24, 2022

I guess a video might not help much. Are you able to see any errors in the browser console? If not maybe you can check the result of the request, that tries to fetch the ranks from backend.

@Tony-Baker
Copy link
Author

No browser console issues, the only thing that I spotted in the Diagnostics > system check is this:

System-Check-Administration-Tecology-Analytics

@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/seo-ranking-widget-intermittent-error/47105/2

@heurteph-ei
Copy link

For information, on the demo website, I tried this widget, and I had to press on the [Rank] button in order to get some results...

@Tony-Baker
Copy link
Author

@sgiehl @MatomoForumNotifications @heurteph-ei . Demo site has the same issue:

Demo-Site-2022-08-23-Web-Analytics-Reports-Matomo

@Tony-Baker
Copy link
Author

Strangely it will work if you search on other websites and then press the 'Rank' button, just not the one currently selected for analysis.

@sgiehl
Copy link
Member

sgiehl commented Aug 24, 2022

This might be a random failure maybe. Matomo is caching the results, maybe even in case of an error. That's something we need to investigate...

@sgiehl sgiehl added the Needs priority decision This issue may need to be added to the current milestone by Product Manager label Aug 24, 2022
@sgiehl sgiehl added this to the For Prioritization milestone Aug 24, 2022
@craigvc
Copy link

craigvc commented Nov 8, 2022

any news on this @sgiehl we have same issue

@craigvc
Copy link

craigvc commented Nov 8, 2022

As a side note deleting the tmp folder seems to fix it - though not ideal!

@sgiehl
Copy link
Member

sgiehl commented Nov 8, 2022

Sorry @craigvc. We currently don't have the capacity to work on that one. As mentioned before, this seems to be some sort of caching bug. In some cases when fetching the results a (random) error might occur. That result is currently cached and displayed over and over again till the cache is invalid or cleared.
We need to change how the caching is currently handled. I guess the smartest solution would be to lower the cache validity to something like 30 seconds in case of an error.
If someone is keen on looking into that one, feel free to provide a Pull Request. We would be happy to review and assist with getting it merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs priority decision This issue may need to be added to the current milestone by Product Manager
Projects
None yet
Development

No branches or pull requests

5 participants