-
Notifications
You must be signed in to change notification settings - Fork 21
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
Track 404 errors #46
Comments
There's some more information here, and an alternative way to track 404s: matomo-org/matomo#6580 |
Add code to set the page title to include information about the URL and referrer for pages that do not exist. Based on recommendations at https://matomo.org/faq/how-to/faq_60/ Bug: DaSchTour#46
Add code to set the page title to include information about the URL and referrer for pages that do not exist. Based on recommendations at https://matomo.org/faq/how-to/faq_60/ Also fix some minor phpdoc syntax. Bug: DaSchTour#46
Indeed, it would be something useful to understand what the visitors do not find – MediaWiki has already the special pages Wanted* (WantedPages, WantedCategories, …) but it’s more from the point of view of the editors (what pages should we create?) instead of the visitors (what pages do we want to see? including pages not anticipated by the editors). Given Matomo has no official method to support that (but it could appear in the future), perhaps the best way for now is to use one of the method described in the links in the parameter
And experiment what is the more convenient. When a method will be stable, it could be documented on the mediawiki.org page. |
Ah, I realise some support from this extension is necessary to conditionnally include this JS snippet only on the 404 page, or perhaps more generally add a JS variable with the HTTP status code to be retrieved with EDIT: and I see your PR #47. |
Yeah it's odd that Matomo doesn't have a better way to track them, but changing the title seems to work okay. The adding of the slashes means that it displays it grouped in the same way it does other directories. Does that PR look ok? |
@Seb35 Gentle reminder about this. Let me know if you want me to update the PR in any way. |
The Matomo docs suggest tracking 404 errors like this:
Is this something that this extension could handle?
The text was updated successfully, but these errors were encountered: