Clarify meaning of "Search Result Pages" and search_count · Issue #8802 · matomo-org/matomo · GitHub
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

Clarify meaning of "Search Result Pages" and search_count #8802

Closed
dhoko opened this issue Sep 16, 2015 · 7 comments
Closed

Clarify meaning of "Search Result Pages" and search_count #8802

dhoko opened this issue Sep 16, 2015 · 7 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@dhoko
Copy link

dhoko commented Sep 16, 2015

Hi,

The search count doesn't work here. Piwik is up to date, so we tried on a clean install too, nope :/
Tested via POST or GET, ex request:

http://foo.bar:20280/piwik.php?search=jean&search_count=825&idsite=1&rec=1&r=747679&h=15&m=21&s=38&url=http%3A%2F%2Ffoo.bar%3A3000%2F%23%2Fsearch%3Fq%3Djeanne&_id=8f10a22315783aa6&_idts=1442409669&_idvc=1&_idn=0&_refts=0&_viewts=1442409669&send_image=0&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=1&java=1&gears=0&ag=0&cookie=1&res=2112.000045776367x1188.0000257492065&gt_ms=17

So we have search_count=825 and
screenshot from 2015-09-16 15 26 24

There is more than 1 result for other queries

Edit 1

It seems to work as expected if the search_count is 0 cf:

screenshot from 2015-09-16 15 40 48

Edit 2, wtf time

Query red 758 results

screenshot from 2015-09-17 09 27 51

Query red (2) 758 results

screenshot from 2015-09-17 09 28 23

Query papier 1000 results

screenshot from 2015-09-17 09 29 10

Query red (3) 758 results

screenshot from 2015-09-17 09 32 06
results

Query papier (2) 1000 results

screenshot from 2015-09-17 09 37 07

After a query papiers and another red

As you can see the count is random :/

@mattab
Copy link
Member

mattab commented Sep 20, 2015

Hi @dhoko

At the moment, Piwik uses only the case search_count=0 to detect that a Site Search had no result, to show them in the "Search keywords with no result" report. If search_count is bigger than 0, currently this data is not tracked in Piwik and not used in the reporting.

@mattab mattab closed this as completed Sep 20, 2015
@mattab mattab added the worksforme The issue cannot be reproduced and things work as intended. label Sep 20, 2015
@mattab
Copy link
Member

mattab commented Sep 20, 2015

I'm wondering, what did you expect, and maybe we could improve documentation to make it more clear. Did you think search_count would impact Search result pages metric/column?

@dhoko
Copy link
Author

dhoko commented Sep 21, 2015

Hum i was expecting to have the search_count value into Search result pages.
I have only one per per search (lazy load results on scroll), so that's why i don't understand this column, why do we have 5,5 etc. ?

If you use search_count as a boolean this name is wrong :)

@mattab
Copy link
Member

mattab commented Sep 22, 2015

Hum i was expecting to have the search_count value into Search result pages.

Search result pages actually indicates the number of times a user has searched for this keyword, if user clicks on "Page 2" it will search another time and Piwik will count as "2 Search result pages".

If you use search_count as a boolean this name is wrong :)

we only use the value when search_count=0 but it's not a boolean. Maybe later we could report "Number of search results" (or this could be done in a plugin)

@dhoko
Copy link
Author

dhoko commented Sep 22, 2015

Ok :)

But I don't understand why there is a 5.5 :

@RMastop
Copy link
Contributor

RMastop commented Sep 22, 2015

Hi @mattab,
I was under the assumption that the Search Results Pages was the amount of search results devided by the amount of searches. after all, we do add the number of results in a tag like it was specified in this guide:
http://developer.piwik.org/guides/tracking-javascript-guide#internal-search-tracking

// Number of results on the Search results page. Zero indicates a 'No Result Search Keyword'. Set to false if you don't know

@mattab mattab changed the title search_count doesn't bind the value Clarify meaning of "Search Result Pages" and search_count Sep 23, 2015
@mattab mattab removed the worksforme The issue cannot be reproduced and things work as intended. label Sep 23, 2015
@mattab mattab added this to the Mid term milestone Sep 23, 2015
@mattab mattab reopened this Sep 23, 2015
@mattab mattab modified the milestones: Short term, Mid term Nov 25, 2015
@mattab
Copy link
Member

mattab commented Nov 25, 2015

I think to clarify this issue we could Display Site Search Results Count, in Site Search Keywords widget - covered in #8991

if that is not enough to clarify this issue please comment here to ask me to re-open

@mattab mattab closed this as completed Nov 25, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Oct 5, 2016
@innocraft-automation innocraft-automation removed this from the Backlog (Help wanted) milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

4 participants