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

Live.getSimpleLastVisitCount widget loses segment upon refresh #13499

Closed
fsuter opened this issue Sep 28, 2018 · 3 comments
Closed

Live.getSimpleLastVisitCount widget loses segment upon refresh #13499

fsuter opened this issue Sep 28, 2018 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@fsuter
Copy link

fsuter commented Sep 28, 2018

I'm using Matomo 3.6.0 to monitor statistics on a web site (let's call it foo.com). I use various widgets to display statistics on foo.com itself (in some backend tool). All widgets are filtered with a Page URL based segment to display statistics only for the currently chosen page in the backend tool. So far so good.

One of the widgets I'm using is the Live.getSimpleLastVisitCount. It's actually the only Live widget that I use in my reporting too. The problem I have is that it loses the segment information when it refreshes. Hence it switches to displaying live stats for the whole site and not just for the current page.

I can reproduce the same behaviour out of the Matomo backend, in the Settings > Widget section:

  • I open the widget in a new window
  • I modify the URL to add a page segment => works
  • the widget refreshes after a few seconds => segment information lost

I can see the different when looking at the request parameters using Chrome Developer Tools. During the initial request a query parameter segment: pageUrl=$foo/bar/ is passed. In the refresh requests sent via AJAX, there's no segment information anymore.

Is this a bug or some wrong setting on our side?

@sgiehl
Copy link
Member

sgiehl commented Sep 30, 2018

Thanks for the report. I was able to reproduce and will start working on a fix now.

@sgiehl sgiehl added this to the 3.6.1 milestone Sep 30, 2018
@sgiehl sgiehl added the Bug For errors / faults / flaws / inconsistencies etc. label Sep 30, 2018
@sgiehl
Copy link
Member

sgiehl commented Oct 1, 2018

fixed in #13512

@sgiehl sgiehl closed this as completed Oct 1, 2018
@fsuter
Copy link
Author

fsuter commented Oct 2, 2018

Brilliant, thanks a lot!

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
Development

No branches or pull requests

2 participants