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

Make it easier to create Segments with Custom Variables #6031

Closed
mattab opened this issue Aug 20, 2014 · 1 comment
Closed

Make it easier to create Segments with Custom Variables #6031

mattab opened this issue Aug 20, 2014 · 1 comment
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

@mattab
Copy link
Member

mattab commented Aug 20, 2014

Context
Piwik lets you assign Custom Variables to visit and/or pageviews (and site searches, events, etc.). Users can then create Custom Segments to get reports for all visits and pages matching a particular Custom Variable.

Goal
The goal of this ticket is to make creating segments with custom variables more user friendly.

Why are segments hard to use with Custom variables?

To create a segment with a custom variable, user has to know which slot the custom variable was created in (slot is a number from 1 to N). A segment to select only page views tagged with a particular author would like this: customVariableNamePage1==author,customVariableValuePage1==xyz

This is hard to use by users who may not know which slot was a given custom variable set.

Proposed solution

  • Create new segments providing shortcuts, ie.
    • customVariableNamePage==name_here which would automatically select any page view with a custom variable name set with name_here. The generated SQL would look something like custom_var_k1 == name_here OR custom_var_k2 == name_here OR custom_var_k3 == name_here OR custom_var_k4 == name_here OR custom_var_k5 == name_here
    • similarly create new segment for the value customVariableValuePage
    • and the same segments for the "Visit" scope: customVariableName and customVariableValue
  • the auto-completer for the segment customVariableName would show all possible custom variable names for all slots.

Adding this new "magic segment" matching any slot should make the act of creating custom segments with custom variables much easier. Thoughts?

@mattab mattab added this to the Mid term milestone Aug 20, 2014
@mattab mattab modified the milestones: Short term, Mid term Feb 11, 2015
@diosmosis diosmosis self-assigned this Mar 8, 2015
@mattab mattab added the Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. label Apr 9, 2015
@mattab mattab modified the milestones: Mid term, Short term Apr 9, 2015
@diosmosis diosmosis removed their assignment May 6, 2015
@diosmosis diosmosis modified the milestones: 2.15.0, Mid term Sep 11, 2015
@diosmosis diosmosis self-assigned this Sep 11, 2015
@tsteur
Copy link
Member

tsteur commented Sep 11, 2015

Added comment in #8754 (comment) also seeing it a bit dangerously as results can get inaccurate when using it right? Eg when a search term matches different custom variables. Eg contains 2. may apply to a custom variable Android version number but also App version number

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

No branches or pull requests

3 participants