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

Site Search Keywords should be handled case insensitive #8789

Open
mattab opened this issue Sep 15, 2015 · 11 comments
Open

Site Search Keywords should be handled case insensitive #8789

mattab opened this issue Sep 15, 2015 · 11 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@mattab
Copy link
Member

mattab commented Sep 15, 2015

Site Search Keywords should be handled case insensitive, so that "Harry Potter" and "harry potter" are grouped together as the same search term in the Site Search Keywords list.

Reported in http://forum.piwik.org/read.php?2,129050

@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Sep 15, 2015
@mattab mattab changed the title Site Search Keywords should be handled case insensitive (lowercase) Site Search Keywords should be handled case insensitive Sep 15, 2015
@mattab
Copy link
Member Author

mattab commented Sep 20, 2015

I'm wondering whether it would be a good solution to make all Site Search keywords lowercase?

@mattab mattab added this to the 2.15.1 milestone Sep 20, 2015
@tsteur
Copy link
Member

tsteur commented Sep 21, 2015

Maybe we could display the version that was used the most and on hover display how often each version was used?

@mattab mattab modified the milestones: 2.15.1, 2.16.0, Short term Sep 21, 2015
@mattab
Copy link
Member Author

mattab commented Sep 29, 2015

from our feedback button:

Site Search Keywords should be handled case insensitive, so that "karen blixen", "Karen Blixen", "Karen blixen" and "karen Blixen" are grouped together as the same search.

@MatomoKV
Copy link

MatomoKV commented May 9, 2019

Hello,

we have the same issue with the current version of Matomo, There is still no fix. Is there any update by when there will be a solution?

Thanks

@tsteur
Copy link
Member

tsteur commented May 9, 2019

Just fyi: In case you use the trackSiteSearch tracker method, you could do something like _paq.push(['trackSiteSearch', keyword.toLowerCase()])

@mindbreaker
Copy link
Contributor

Any Update?

@KarthikRaja1388
Copy link

Customer's question:
Our search keywords are not case insensitive, so our Matomo setup differentiates between a search for 'macbeth' and a search for 'Macbeth'. This is making it quite hard to get an overall view of how many people are searching for our pieces of content.

How do we remove the case sensitivity and view the searches for 'macbeth' and 'Macbeth' together?

@mattab
Copy link
Member Author

mattab commented Aug 30, 2021

@KarthikRaja1388 currently it must be worked around "manually" in JavaScript, by using "Track Site Search using the Javascript trackSiteSearch() function" and then also manually calling the .toLowerCase() function in JavaScript, when calling trackSiteSearch

@tassoman
Copy link
Contributor

tassoman commented Jan 23, 2023

What if a person is using default tracker, with no editing, only defining "GET" parameters inside website's configuration?
Maybe can be added flag inside website configuration, saying "track lowercase sitesearch" Y/N ? 🤔

BTW IMO should be case insensitive by default. During 2023 there's no search engine making difference between uppercase and lowercase.

Maybe it can be simply a global.inc.php flag.

@BrandSven
Copy link

What if a person is using default tracker, with no editing, only defining "GET" parameters inside website's configuration? Maybe can be added flag inside website configuration, saying "track lowercase sitesearch" Y/N ? 🤔

BTW IMO should be case insensitive by default.

I second that! :-)

@BrandSven
Copy link

@KarthikRaja1388 currently it must be worked around "manually" in JavaScript, by using "Track Site Search using the Javascript trackSiteSearch() function" and then also manually calling the .toLowerCase() function in JavaScript, when calling trackSiteSearch

What would be the correct approach if the site is tracked using the Tag Manager? Just
_mtm.push(['trackSiteSearch', keyword.toLowerCase()])?

Plus, should the site search in the websites properties (default query parameters) be disabled in this scenario?

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

7 participants