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

Possilbe bug with site-search tracking by piwik #13140

Closed
JeffS25 opened this issue Jul 5, 2018 · 4 comments
Closed

Possilbe bug with site-search tracking by piwik #13140

JeffS25 opened this issue Jul 5, 2018 · 4 comments
Labels
worksforme The issue cannot be reproduced and things work as intended.

Comments

@JeffS25
Copy link

JeffS25 commented Jul 5, 2018

Site search keyword is returning 'Undefined' as a search keyword.
The number of search results are more than 200 for 'Undefined' keyword. Can you please help me know in understanding why it's showing 'Undefined' as search keyword?

Thanks,
Jeff
undefined

@tsteur
Copy link
Member

tsteur commented Jul 5, 2018

Are you tracking Site Search using the Javascript trackSiteSearch() function?

@JeffS25
Copy link
Author

JeffS25 commented Jul 6, 2018

Hi,

Thanks for the quick response.

We are not using trackSiteSearch() function.We are using

_paq.push(['trackPageView']);
        _paq.push(['enableLinkTracking']);

Also, I have an issue where I am receiving the search result keyword under no search result keyword. please advise if I have to use

                    if(searchResultCount==null||searchResultCount==0 ){
		    _paq.push([ 'trackSiteSearch', searchvalue, false, 0 ]);

		    }else {
		    	  _paq.push([ 'trackSiteSearch', searchvalue, false, searchResultCount ]);
		    }

Please correct me if I am wrong, I am new to coding.

Thanks,
Jeff

@tsteur
Copy link
Member

tsteur commented Jul 9, 2018

Looking at the code I would maybe test your search form in the browsers where this happens just as a random thought. I'm thinking maybe your website actually sends something like /mypath?q=undefined because of a bug in your site search maybe?

Unfortunately, I'm not so familiar with the trackSiteSearch. On https://matomo.org/docs/site-search/ it suggests that you can use this method instead of trackPageView. On the page it also explains how to track no site searches etc. Maybe it helps.

@Findus23
Copy link
Member

Without checking what data is sent to Matomo in the HTTP request, it is hard to know if this is a bug in Matomo (but undefined sounds a lot like JS).

If you or someone else can reproduce this issue and provide more details, please reopen the issue or create a new one.

@Findus23 Findus23 added the worksforme The issue cannot be reproduced and things work as intended. label May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants