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

Segments containing AND operator give no results #7177

Closed
micvm opened this issue Feb 11, 2015 · 5 comments
Closed

Segments containing AND operator give no results #7177

micvm opened this issue Feb 11, 2015 · 5 comments
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@micvm
Copy link

micvm commented Feb 11, 2015

When I use the AND operator in the segment editor for goals or urls, the result is always empty.
Piwik Version: 2.10.0 (upgraded version).

Steps to reproduce:

  • Create a new segment
  • Choose (e.g.) page-url equals [yourdomain])
  • Add an "AND" condition
  • Choose e.g. page-url equals [yourdomain]/[pagename]
    the segment will always return 0 visits.

I could reproduce the same issue by using goal-ids instead of urls:

  • Create a new segment
  • Choose "Visits that achieved a specific goal-id" equals [id]
  • Add an "AND" condition
  • Choose "Visits that achieved a specific goal-id" equals [otherid]

I tried also to combine goal with url by means of the AND operator and that does not work as well.
I can try other rules if it helps to find the problem.

@tsteur
Copy link
Member

tsteur commented Feb 13, 2015

Choose (e.g.) page-url equals [yourdomain])
Add an "AND" condition
Choose e.g. page-url equals [yourdomain]/[pagename] the segment will always return 0 visits.

At first I thought that's by design (and it currently is). You need an OR condition. A page URL can't be 'http://www.example.org' and 'http://example.org/pagename'. It can be only one of those. Same for goal id. You will need an OR condition there.

Maybe the design is a bit wrong as you want to see all visits that have achieved eg both goals or visited both page urls but not only one of them. Sounds like a bug to me?

@micvm
Copy link
Author

micvm commented Feb 16, 2015

Oh, I understand. So it's rather "actions"-based more than "visits"-based. However, I think that when piwik users filter visits with segments they may also want to know what happened within one visit in terms of combinations of actions (e.g. achieved more than one goal within a visit).

@tsteur
Copy link
Member

tsteur commented Feb 16, 2015

True, I would want to do that as well.

ping @mattab

@mattab
Copy link
Member

mattab commented Feb 19, 2015

This would be nice indeed, to let us Segment to users who did a given set of actions (eg. viewed Page X + Converted Goal Y + Did Event Z). I think it's similar to Google analytics Segment Sequence.

@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Feb 19, 2015
@mattab mattab added this to the Mid term milestone Feb 19, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
@mattab
Copy link
Member

mattab commented Feb 14, 2019

see #7533

@mattab mattab closed this as completed Feb 14, 2019
@mattab mattab added the duplicate For issues that already existed in our issue tracker and were reported previously. label Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants