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
Pagetitle reports "Page Name not defined" although all PageViews do have a title (action_name) #15740
Comments
@peterbo I suppose it wouldn't be some 404 error page or so? Any chance you could do some query on the DB to find out more about this (like |
Hi @tsteur - presumably it's not a 404/Error page. I investigated a bit further on the issue and it seems, that this is related to Form Analytics. Form Analytics sometimes seems to bundle/bulk some requests ("POST /piwik.php?{%22requests%22:[%22?fa_vid=[...]") - which seems to be buggy. Every time a bulk request was sent, there was an extra visit recorded in Matomo (compare the timing from the action in the "main" visit in the middle and the action without page title from the "rogue" visit below): For this example, the request was This seems to also happen on the demo and it doesn't seem to be isolated to the Form Analytics plugin (but I don't know is this is just automatically generated data, so I'm not sure if I can use that as an example): |
Thanks @peterbo
Do I see this right the first request within bulk request is missing the Looking at the code this can't really happen though because it wouldn't find a tracker instance to use. Maybe though there the userId is configured somehow differently? Like it adds a tracker but configures it fully only later or so (like idSite or the URL or cookie domain or ...). |
Hi @tsteur - both requests contain the correct user-ID. Sorry for just "anonymizing" one of them, that was probably misleading. |
Thanks @peterbo Can't really think of a reason why they wouldn't be put into the same request. Any chance you can send me the log_link_visit_action and log_visit entries for the ones from the first screenshot? Eg in chat? Can't explain it just yet |
Hi @tsteur - sorry for the confusion, I think the "extra visit problem" would be better addressed in another ticket, since I don't think these two things are connected. I'm still searching for possible reasons for the "Page Name not defined", but had no luck yet. Most of the provided screenshots are from the Matomo Demo, where I do not have access to the database. But I'll also try to reproduce this on other instances. |
@peterbo I quickly looked at a site from us and was able to reproduce this (finding such log entries). Then looked in server logs for the same tracking request and noticed it was also by form analytics. Then tried the individual requests within that bulk request and things worked. Then tried the actual bulk request and from what I can see this happens: So basically the bulk request is treated as one request instead of a bulk request. We send bulk requests through GET parameters should the total request be like less than 2K requests. This has the advantage that it can be replayed potentially, and that it helps with debugging issues (like these) as otherwise the request parameters would not appear in the log if it was posted. Looking at bulk request plugin it doesn't support this through search query though. Looking at the tracker code it should only happen when it does a request through send beacon in https://github.com/matomo-org/matomo/blob/3.13.4/js/piwik.js#L3579-L3582 . There we would probably need to check whether it is a bulk request and if so, not append it to the query but post it. Not sure if it can happen also in another way. @mattab I suppose the tracker tracking wrong data for bulk requests is something we want to fix in 3.x? |
if the PR can be easily backported, that would be valuable. To better understand what's affected, which plugins or use cases are potentially affected due to this issue? (Since it wasn't detected so far, maybe it's not critical to backport it if'd be too time consuming). |
Hey @tsteur - reusing this ticket for that matter. I can still see a lot of "pagename not defined" entries in the page title report. Matomo version 4.3.1, relevant Plugins: FormAnalytics 4.0.6, HeatmapSessionRecording 4.0.12, MultiChannelConversionAttribution 4.0.5, CustomReports 4.0.7 The effect is most severe in Websites with more forms. I think this might be still the same effect like initially described. Opening the VisitorLog for the "Pagename not defined" row doesn't show any pages without titles within the user sessions. This is an example of a user from the VisitorLog that was opened via the row action of "pagename not defined": |
@peterbo do you maybe have a way to reproduce this and/or can find out the access logs for requests that caused this? It be otherwise quite hard to know where this is still coming from. And I'm assuming the Matomo has been using this version for a while? Otherwise I would have thought maybe there are still some cached older JS tracker versions in use but that's quite unlikely. |
I see this in multiple instances - a row in the Pagetitle report that shows "Page Name not defined". This row has too many visits to be just a "rogue tracking request" somewhere on the website. Also, this row always reports 0 for exit and bounce rate and 00:00:00 for time on site.
This is also reproducible on the demo:
This seems to be a regression where another tracking method seems to write an empty action name to the database.
Probably is the same as #14512.
The text was updated successfully, but these errors were encountered: