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

New segment 'language' #3950

Closed
mattab opened this issue May 23, 2013 · 7 comments
Closed

New segment 'language' #3950

mattab opened this issue May 23, 2013 · 7 comments
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented May 23, 2013

We should have a segment for "user language". Maybe this involves rewriting the data and storing only one language, instead of storing the whole string as we do now in location_browser_lang

@anonymous-matomo-user
Copy link

I'm really surprised that particularly "browser language" is not available for segmenting.
Was it just forgotten, or it is hard to add, as suggested here?

@mattab
Copy link
Member Author

mattab commented Mar 24, 2014

not trivial to add, since we don't store the language in the database, but we store the Accept-language string (which can contain several languages).

So to provide an accurate browser language feature we should first store only one language in the field "log_visit.location_browser_lang"

@mattab
Copy link
Member Author

mattab commented May 6, 2014

Forget about previous comment,

an easier solution is:

  • simply add the segment to metadata, and user will be able to choose "Contains" condition, as well as "Is" (eg. language contains 'it' will match 'it,en')
  • if user manually set the language via the &lang= parameter (see tracking api reference), then they could simply create segments with 'Is' condition: language is 'it'

@mattab
Copy link
Member Author

mattab commented Jun 19, 2014

Created ticket: #5365 do not store Accept-language full string, only store detected language

@mattab mattab added this to the 2.x - The Great Piwik 2.x Backlog milestone Jul 8, 2014
@mattab mattab removed P: low labels Aug 3, 2014
@oussjarrousse
Copy link

👍
I believe it is a very important feature to have and I hope it will be included in your next release

@fnagel
Copy link

fnagel commented Jun 2, 2015

+1

@mattab
Copy link
Member Author

mattab commented Jun 10, 2015

now that we store only one language in the DB field (#5365) this can be done quite easily I think 👍
@sgiehl maybe you want to take a crack at it

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.
Projects
None yet
Development

No branches or pull requests

5 participants