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

in Graphs, selected metrics may not be saved and lost after a page reload #11499

Closed
aimeos opened this issue Mar 19, 2017 · 15 comments · Fixed by #13088
Closed

in Graphs, selected metrics may not be saved and lost after a page reload #11499

aimeos opened this issue Mar 19, 2017 · 15 comments · Fixed by #13088
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@aimeos
Copy link

aimeos commented Mar 19, 2017

After upgrading from the last Piwik 2 to Piwik 3.0.2, selecting multiple metrics in the "Visitor Overview" and the "Goal Overview" aren't saved. After a page reload, only the default graph is shown again.

@sgiehl
Copy link
Member

sgiehl commented Mar 19, 2017

@aimeos Are you viewing Piwik as anonymous user? It works for me if I'm logged in.

@aimeos
Copy link
Author

aimeos commented Mar 19, 2017

@sgiehl No, I'm logged in too. Rearranging the dashboard is saved but not the metrics in the named panels. Can this be a problem rooted in the upgrade from Piwik 2?

@sgiehl
Copy link
Member

sgiehl commented Mar 19, 2017

@aimeos hm... that's strange. could you try to create a new dashboard with those widgets on it and try if it works there?

@aimeos
Copy link
Author

aimeos commented Mar 19, 2017

@sgiehl Same problem

@mattab
Copy link
Member

mattab commented Mar 21, 2017

Can you please list exact steps to reproduce and what you get VS what you expected to see? Screenshot welcome too 👍

@mattab mattab added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Mar 21, 2017
@aimeos
Copy link
Author

aimeos commented Mar 21, 2017

Login -> Dashboard:
screenshot_1

Add "Pageviews" metric:
screenshot_2

Click on "Dashboard" link in the left navigation:
screenshot_1

As you can see, the "Pageviews" isn't plotted any more. Expected are the same metrics as before:
screenshot_3

Before, in Piwik 2.x the selected metrics where saved and even shown after logout/re-login.
This is the dashboard config in the piwik_user_dashboard table:

{"config":{"layout":"33-33-33"},"columns":[[{"uniqueId":"widgetVisitOverviewWithGraph","parameters":{"module":"CoreHome","action":"renderWidgetContainer","containerId":"VisitOverviewWithGraph","widget":1,"columns":["nb_visits","nb_pageviews"],"columns_to_display":["nb_visits","nb_pageviews"],"rows":[],"rows_to_display":[]},"isHidden":false},{"uniqueId":"widgetActionsgetPageUrls","parameters":{"module":"Actions","action":"getPageUrls","widget":1,"enable_filter_excludelowpop":"0","viewDataTable":"table","availableWidth":432,"availableHeight":671,"columns":"nb_visits"},"isHidden":false},{"uniqueId":"widgetLivewidget","parameters":{"module":"Live","action":"widget","widget":1},"isHidden":false}],[{"uniqueId":"widgetGoalsOverview","parameters":{"module":"CoreHome","action":"renderWidgetContainer","widget":1,"columns":["nb_conversions","conversion_rate"],"columns_to_display":["nb_conversions","conversion_rate"],"rows":[],"rows_to_display":[],"isFooterExpandedInDashboard":false,"containerId":"GoalsOverview"},"isHidden":false},{"uniqueId":"widgetReferrersgetWebsites","parameters":{"module":"Referrers","action":"getWebsites","widget":1,"isFooterExpandedInDashboard":true,"viewDataTable":"table","flat":"0"},"isHidden":false}],[{"uniqueId":"widgetUserCountryMapvisitorMap","parameters":{"module":"UserCountryMap","action":"visitorMap","widget":1},"isHidden":false},{"uniqueId":"widgetSEOgetRank","parameters":{"module":"SEO","action":"getRank","widget":1},"isHidden":false},{"uniqueId":"widgetVisitTimegetVisitInformationPerServerTime","parameters":{"module":"VisitTime","action":"getVisitInformationPerServerTime","widget":1,"columns":["nb_visits","nb_actions"],"columns_to_display":["nb_visits","nb_actions"],"rows":[],"rows_to_display":[]},"isHidden":false},{"uniqueId":"widgetDevicesDetectiongetBrowserEngines","parameters":{"module":"DevicesDetection","action":"getBrowserEngines","widget":1,"columns":["nb_visits"],"columns_to_display":["nb_visits"],"rows":[],"rows_to_display":[],"viewDataTable":"graphPie"},"isHidden":false},{"uniqueId":"widgetReferrersgetKeywords","parameters":{"module":"Referrers","action":"getKeywords","widget":1,"isFooterExpandedInDashboard":true,"viewDataTable":"table"},"isHidden":false},{"uniqueId":"widgetReferrersgetSearchEngines","parameters":{"module":"Referrers","action":"getSearchEngines","widget":1,"isFooterExpandedInDashboard":true,"viewDataTable":"table"},"isHidden":false}]]}

@peterbo
Copy link
Contributor

peterbo commented Sep 21, 2017

This is also broken on the demo.piwik.org but not in all widget types. (e.g. visits over time is running well, visits overview (with graph) is broken.

Steps to reproduce:

  • put e.g. the "visits overview (with graph)" widget to the dashboard
  • plot another metric, e.g. bounce rate
  • reload the dashboard
    -> the bounce rate graph is not displayed

@tsteur
Copy link
Member

tsteur commented Sep 21, 2017

Is this only about Dashboard? If not you might want to test #11983 and see if it changes anything

@peterbo
Copy link
Contributor

peterbo commented Sep 21, 2017

Yes, the problem only appears on the dashboard (but only in some widgets). The PR at #11983 didn't fix it here.

@sgiehl
Copy link
Member

sgiehl commented Sep 22, 2017

I guess the problem only occurs in widgets that contain multiple other "widgets".
They are built using a widget container which loads the containing widgets. While the url for loading the widget container contains the saved settings as params, the urls for the widgets loaded afterwards don't contain the params anymore. So we need to find a way to give the params from container to the widgets it contains...

@olivierlambert
Copy link

Same issue for me (worked in Piwik 2, just upgraded to 3, it doesn't save my metrics I want to plot, just those by default (eg Visitors and not unique visitors). As soon as I refresh the widget, it puts me back to the default metrics.

@mattab
Copy link
Member

mattab commented Oct 23, 2017

@sgiehl maybe this is a regression we can address soon?

@sgiehl sgiehl added Bug For errors / faults / flaws / inconsistencies etc. and removed Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. labels Oct 31, 2017
@mattab mattab modified the milestones: Priority Backlog (Help wanted), 3.2.2 Dec 5, 2017
@urmet0
Copy link

urmet0 commented Dec 11, 2017

Same issue here after upgrading from Piwik 2.x to 3.2.0.

@olivierlambert
Copy link

Seems fixed for me in 3.2.1

@aimeos
Copy link
Author

aimeos commented Dec 11, 2017

Upgraded to 3.2.1 but still the same issue

@diosmosis diosmosis self-assigned this Jun 20, 2018
@mattab mattab changed the title Multiple metrics are not stored in Piwik 3.0 for plotting in Graphs, selected metrics may not be saved and lost after a page reload Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
8 participants