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

Compare segments #7716

Closed
DaSchTour opened this issue Apr 20, 2015 · 2 comments · Fixed by #14365
Closed

Compare segments #7716

DaSchTour opened this issue Apr 20, 2015 · 2 comments · Fixed by #14365
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@DaSchTour
Copy link
Contributor

Similar to the possibility google analytics offers it would be great, if piwik would allow to compare segments. I searched for a similar issue but couldn't find it. So hopefully this isn't a duplicate.

@mattab
Copy link
Member

mattab commented Apr 21, 2015

@DaSchTour absolutely, ability to compare the same data set for 2 segments, in the same data table, would be awesome!

it's related / similar to the ability to compare two different date perids for the same report(s) in #5711 as in google analytics and other advanced analytics tools

Related to comparing dates as well (since both would use same mechanism) #5711

@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Jul 14, 2015
@mattab mattab added this to the Mid term milestone Jul 14, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
@tsteur tsteur self-assigned this Jan 8, 2019
@tsteur tsteur modified the milestones: Backlog (Help wanted), 3.9.0 Jan 8, 2019
@tsteur
Copy link
Member

tsteur commented Jan 24, 2019

Unassigning myself for now as I'm not sure when I find time to work on it again. Started work on it here: https://github.com/matomo-org/matomo/compare/5711

Done so far:

  • For regular data tables support date1=&period1= for date comparison, as well as &segment1=...&segment2=&segment3=&segment4= for segment comparison. both can be used together
  • Adjusted date selector to support comparisons (not fully finished eg compare date needs to adjust automatically depending on selection of comparison period and selected period etc)
  • When comparing data, we automatically flatten the data (at least for now)... maybe some reports want to define different behaviour and only work on first row level data (eg acquisition websites, etc)
  • Data structure looks like
    • Label1
      • Date1 (present if comparing date)
        • Segment1 (present if comparing segment)
        • Segment2 (present if comparing segment)
      • Date2 (present if comparing date)
        • Segment1 (present if comparing segment)
        • Segment2 (present if comparing segment)
    • Label2
      • ....

To be done:

  • Add comparison selection to segment selector: We would only allow to compare to other already created segments
  • In API response I currently set the segment expression in the API output as label but would need to show ideally the segment name if the segment expression is found
  • Need to automatically expand all rows in html table when comparing data? not sure...
  • Define how API output could look like when using simple datatable (sparklines, evolution graph)
  • Support comparison for bar, pie, ... charts
  • Support comparison for evolution graphs
  • Support comparison for sparklines
  • Support comparison ideally in row evolution

@tsteur tsteur removed their assignment Jan 24, 2019
@diosmosis diosmosis self-assigned this Mar 18, 2019
@mattab mattab modified the milestones: 3.9.0, 3.10.0 Mar 18, 2019
@mattab mattab added the Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. label Mar 19, 2019
@mattab mattab modified the milestones: 3.10.0, 3.11.0 May 28, 2019
@mattab mattab modified the milestones: 3.11.0, 3.12.0 Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants