@aimeos opened this Issue on March 19th 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 commented on March 19th 2017 Member

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

@aimeos commented on March 19th 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 commented on March 19th 2017 Member

@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 commented on March 19th 2017

@sgiehl Same problem

@mattab commented on March 21st 2017 Owner

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

@aimeos commented on March 21st 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 commented on September 21st 2017 Contributor

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 commented on September 21st 2017 Owner

Is this only about Dashboard? If not you might want to test https://github.com/piwik/piwik/pull/11983 and see if it changes anything

@peterbo commented on September 21st 2017 Contributor

Yes, the problem only appears on the dashboard (but only in some widgets). The PR at https://github.com/piwik/piwik/pull/11983 didn't fix it here.

@sgiehl commented on September 22nd 2017 Member

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...

Powered by GitHub Issue Mirror