-
Notifications
You must be signed in to change notification settings - Fork 293
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
"Most Popular Content" table displaying page titles in different languages since 1.42.0 #4165
Comments
The same occurs for one impacted user with all plugins deactivated and using a core theme - from a Chrome browser incognito window. Further checks being performed. |
Moving to L1; @jamesozzie leaving a note for you in Asana now. |
Looks like Google Analytics somehow tracks pages translated by Chrome and then we pick this information by accident when we try to aggregate page views by page URLs. I think we can fix it by adding |
@aaemnnosttv can you check my AC? |
@eugene-manuilov ACs LGTM (I think we were planning on making this change anyways) – were you able to confirm that Google translate is the cause here or are we assuming? |
@aaemnnosttv unfortunately, I wasn't. That's my best hunch. |
Thanks @eugene-manuilov, it sounds reasonable but I'm not sure we should use this as the AC for this issue in particular without knowing that it would solve the problem. Maybe we should do this anyways in a separate issue and follow it here? Thoughts @felixarntz ? |
@aaemnnosttv @eugene-manuilov I think going with this approach here should be fine. As mentioned, that is something we were thinking might be helpful anyway, and I could see how this "bug" is caused by not using any particular sorting. I'd say if this ends up not fixing the problem, we can still reopen the issue or open a follow-up one. IMO, the ACs are good to go. |
IB ✔️ |
Instead of assuming the page views should be lower for translated pages, can we map the URLs from Google Analytics and map them with the slug from WordPress? We anyways show only the top pages. There shouldn't be any performance hit. |
I am seeing that site-kit-wp/assets/js/modules/analytics/components/dashboard/DashboardPopularPagesWidget.js Lines 80 to 91 in 1f783fc
Did this get implemented as part of another issue or am I missing something here? |
@kuasha420 this issue is about making a change to the
|
@kuasha420, we forgot to mention it in IB that report arguments need to be updated in storybook stories too. Please, update the following report arguments: site-kit-wp/stories/module-analytics-components.stories.js Lines 363 to 375 in 1f783fc
site-kit-wp/stories/module-analytics-components.stories.js Lines 457 to 469 in 1f783fc
|
Thank you both for the clarification. <3 @eugene-manuilov @aaemnnosttv |
@aaemnnosttv @eugene-manuilov not sure what to put in QA Brief for this one. Any help will be appreciated. |
@kuasha420 Given there aren't clear steps-to-reproduce here I think it's fine to mark this one as I added a simple QA brief and the |
QA✅ orderby: [
{ fieldName: 'ga:pageviews', sortOrder: 'DESCENDING' },
] I don't see unusual page titles, but when I checked versions 1.41 and 1.42, I also didn't see them. |
I'm at 1.44.0 and I'm still seeing Spanish titles for my pages on English. |
@raja-anbazhagan We'll have the latest version of Site Kit released early next week. This fix will be part of that release so hopefully you'll not longer encounter this behavior at that point. Be sure to let us know the outcome once you test it! |
@jamesozzie I misread the update from @ivankruchkoff. Is there a snapshot version available for me to test? |
@raja-anbazhagan We do not offer pre-release testing versions, but as @jamesozzie noted, this will likely be released on Monday. If you're still having trouble after updating, please open a new support topic on our support forum and we'd be happy to take another look – all support for Site Kit is provided there on the forums. Thank you! |
@raja-anbazhagan Just to let you know that Site Kit 1.45.0 has been released. Can you give that a try and confirm that the most popular content table works as expected with these latest changes? |
@jamesozzie Works perfectly. Thanks. |
Bug Description
Since the release of 1.42.0 there have been reports of unusual page title tiles in the "Most Popular Content" table. The titles of some pages are in different languages, including Chinese and German. In one users case this is occurring on both of their sites.
These sites don't have language variations of their content, or have any language plugin active.
In a screenshot kindly provided by one user within their SH info it displays this behavior. You'll notice that while the page titles are in a different language within the "Most populate content" table they do seem to match the actual title if the titles were to be translated.
https://wordpress.org/support/topic/most-popular-content-broken-2/#post-14921621 | Open | SH info
https://wordpress.org/support/topic/error-message-translated-page-titles/ | Open | SH info 1 | SH info 2
Screenshots
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
getPageTitles
selector, should sort response rows by page views descending.Implementation Brief
options
used for the page titles report to include theorderby
parameter, which should be an array with a single object:fieldName: 'ga:pageviews'
sortOrder: DESCENDING
Test Coverage
QA Brief
getPageTitles()
selector sorts page titles by their page views (eg.ga:pageviews
) in descending order as per the ACs/IB. There aren't easy steps-to-reproduce this bug here to QA, so this should be sufficient to QA it 🙂Changelog entry
The text was updated successfully, but these errors were encountered: