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
Custom Variables not tracked on Site Searches requests #6333
Comments
Please assist, because it's a critical blocker for our team |
Maybe simply for urls containing |
I don't think so, but we insert 2 blocks of PIWIK tracking code on one page (search results page) for purposes of tracking search as action and view search results as another action.
After page loads we can see 2 requests to PIWIK instance:
Everything looks good. |
Please look in the Visitors > Visitor Log, hover on the pageview, on the tooltip you will the custom variables names and values. It should show the proper values? |
A problem was in "intelligent" behavior of PIWIK, while you search something. It parses query string and if detects search (according to internal rules) - unbinds all custom variables in this action from page uri, and we can't use filter by page url for this custom variables. Solution: disable PIWIK search tracking in website settings "Do not track Site Search" |
oh ! Sorry about that. Re-opening as it looks like a bug |
I think that bug is not in name of variables.
Actual result: you don't see your custom variables I think PIWIK doesn't bind source url with custom variables in case of search performing |
@EduardTrayan Right that's correct. See also: Add "Download file URL" and "Outlink URL" segments #4103 |
Our solution is disable SITE SEARCH setting at website settings at admin panel. How do you think, this is a bug, or feature? |
@EduardTrayan sorry I got confused there. Now I read again your comment:
Can you please check in the |
@mattab If a enable Site Search tracking In Visitors > Visitorlog ,without custom segment about page url, I see all my custom variables But you can see that this action doesn't contain url address which it came from And if I create&apply custom segment with expression "Page url contains ..." I can't see custom variables from action from screen If I disable site search tracking everything works as expected |
Do all custom vars still show in the tooltip in the Visitor Log when you segment? |
@mattab Could you please provide information about current status of our issue? |
Not scheduled yet, but we hope to fix it in the next few months. If you need it faster please sponsor the work by contacting us at http://piwik.org/consulting/ |
Are we actually using Custom Variables there for this? We should rather fix this hack. |
Actually not I was wrong... see https://github.com/piwik/piwik/blob/master/js/piwik.js#L3647-L3656 |
Hi @EduardTrayan this issue is getting too long and I'm lost. Maybe the issue is caused becasue you use two tracking codes? Or can you reproduce the issue with only one tracking code? if so please note the steps to reproduce and we'll take a look |
Hi @mattab I was trying to get a site search with local variables too, when I found this issue. After a brief look at the code I think the problem might be that CustomVariables are missing from the call https://github.com/piwik/piwik/blob/master/js/piwik.js#L5026-L5030 of the funcion you mentioned, however I can't set up a full stack to test it at the moment. However this feature is key to my project, I hope that helps solving the problem. |
Here is what we need to solve the problem / bug:
If we can reproduce the issue then we will for sure aim to fix it quickly! |
Please createa new bug report with steps to reproduce, and for sure we will take a look at it - thanks for your understanding |
Hi all.
Could you please assist with the issue below.
We have some troubles with displaying visitors statistic in PIWIK.
When we in the filter choose "All Visits" we will see:
Custom Variable Name "Action" -> Custom Variable Value "Search".
But if we apply filter:
Custom Variable Value "Search" is not displaying:
Could you please help me with this issue?
What should i do to fix it?
Thank you in advance.
The text was updated successfully, but these errors were encountered: