-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Insights widget shows only "Others" page titles #17615
Comments
Hi @MichaIng, thanks for the report, we see this on our instances as well. |
I investigated the issue. I haven't sold it yet, but it looks like it's happening because we modified the logic around the summary row for datatables. Lines 841 to 849 in c3bf4c8
It adds an extra row and we don't filter that out. |
The last working version is It has a commit about summary rows. I check if it works without that commit. |
@diosmosis I checked and this commit causes the issue here: 8366ad8 Do you have an idea why it could happen? As I check the data I see we have an extra row now and don't filter that out during the process. |
@flamisz no, I'm not sure why that would happen. To figure out why, I might take the following approaches:
|
It looks like the problem is in the Lines 740 to 753 in 8b4b8ce
The diff is: public function rebuildIndex()
{
$this->rowsIndexByLabel = array();
$this->rebuildIndexContinuously = true;
foreach ($this->rows as $id => $row) {
$label = $row->getColumn('label');
if ($label !== false) {
$this->rowsIndexByLabel[$label] = $id;
}
}
- if ($this->summaryRow) {
- $label = $this->summaryRow->getColumn('label');
- if ($label !== false) {
- $this->rowsIndexByLabel[$label] = DataTable::ID_SUMMARY_ROW;
- }
- }
$this->indexNotUpToDate = false;
} Is this make sense @diosmosis? Is this something that should be fixed in this method or something should be fixed in Insight plugin? |
@flamisz we can't add it to the rowsIndexByLabel variable, since the summary row label is |
Since Matomo v4.3.0 I think, the dashboard widgets "Insights Overview" and "Moves and Shakers" of the Insights plugin show only "Others +100%" and "Others -100%" where most changed page title views should be listed. It looks like page titles with less views/changes are accumulated as "Others", but all of them together change most, which doesn't seem like intended, at least makes it useless.
Expected Behavior
Two distinct most changed page titles should be shown in the widgets.
Current Behavior
Possible Solution
No idea. Probably an underlying API has changed, when obtaining a list of page titles, where less important page titles are merged?
Steps to Reproduce (for Bugs)
Context
Your Environment
The text was updated successfully, but these errors were encountered: