Thomas
Forum Replies Created
-
Hi @adanet thank you for your feedback and sorry it took 2-3 days to get back to you. We usually reply within 1-2 days, sometimes even within few hours but on occasion it may take a bit longer especially when there is a weekend in between (in our timezone we are one day ahead).
We can’t reproduce this issue yet but are trying to understand how this might happen and we’re working on a fix (in https://github.com/matomo-org/wp-matomo/pull/443 ). Let us know if you’re still wanting us to follow up on this and we’d be happy to.
Thanks again @adanet
Thanks @maratino be great if you could set up a temporary admin-login for wordpress@matomo.org and then let us know. Be great to also send us an email on which page/pages we can reproduce it. I’ve installed a similar setup as yours but am not able yet to reproduce it. Be great to know what kind of shortcodes break and whether this is an issue for the original description or maybe only for translated pages etc.
Hi @kramupfel sorry about this and thank you for letting us know about it. Could you maybe either post a link to your website here or by email to wordpress@matomo.org ? We’d have a look if we can find an issue there. Thanks for your help @kramupfel
Thanks for this @jandevries this really helped. In this case it’s actually caused by the Minify HTML plugin.
This images is loaded in PHP during a regular WordPress request. What happens is that the plugin thinks it is an HTML page and tries to minify the output for the image. The plugin is basically simply minifying pretty much any output in https://plugins.trac.wordpress.org/browser/minify-html-markup/trunk/minify-html.php#L43 without really knowing what the output is. I suggest you create an issue with the plugin developer to detect images and other output so it won’t minify this kind of output.
I hope this helps and @sergeyf1 feel free to post a system report as well in case this plugin didn’t cause the issue for you.
In our plugin we’ll now automatically detect this plugin and mention there will be an issue with this plugin and also mentions this on https://matomo.org/faq/wordpress/which-plugins-is-matomo-for-wordpress-known-to-be-not-compatible-with/
Thanks again @jandevries
Hi @saowp when you look in the visitor log for these visits with page title “Page Name not defined” is there maybe a URL shown as well? It may be worth checking the page just in case there is really an issue with the page (which would explain the reloads).
We have generally overall a plugin that helps with preventing tracking spam but it can’t detect all the cases: https://plugins.matomo.org/TrackingSpamPrevention?wp=1&matomoversion=4 You could give it a try and activate the settings after installing it in “WP-Admin Dashboard -> Matomo Analytics -> Matomo Reporting -> Administration (cog icon top right) -> General Settings”. If they come from a bot there is a chance they would be filtered out automatically.
You could also look if any of these visits having anything in common like the same user agent or other things.
You can then define exclusion settings in Matomo in
WP Admin Dashboard -> Matomo Analytics -> Settings -> Exclusions. For example you can exclude certain IPs, user agents, etc.You can also delete visits by going to
WP-Admin Dashboard -> Matomo Analytics -> Matomo Reporting -> Administration (cog icon top right) -> Privacy GDPR Tools. However, it only allows you to search and delete visits based on visitor data, not on a specific URL they viewed. For example you can find them based on their IP address etc but it’s a bit of work.Hi @maratino
thank you for this video. As I don’t have access to some of the plugins and this theme is there any chance you could temporarily switch to another theme or disable some other plugins to see if it then still happens? Or is there are a chance you could send us a copy of that theme and ideally also a copy of the system report in Matomo (see https://matomo.org/faq/wordpress/how-do-i-find-and-copy-the-system-report-in-matomo-for-wordpress/ ). This way we could try and reproduce it better.
Thanks for this research @jandevries could you maybe also post the output of the system report or email it to wordpress@matomo.org ? The report should be anonymised automatically. For more information see https://matomo.org/faq/wordpress/how-do-i-find-and-copy-the-system-report-in-matomo-for-wordpress/
BTW the last link (file io) doesn’t work anymore by the looks. Was it showing any image there?
Great @saowp glad this worked.
Hey @jandevries thanks for looking into this and the provided information. Any chance you could check the browser developer tools in the network tab if any of these requests maybe return some HTML response with an error or so?
Hi @wadih
thanks for creating this issue. As far as a I know the issue is fixed in the latest WPML release. In case you have a testing or staging environment it may be good to test a newer version to see if the update works for you. Hoping it’s a hit rather than a miss. There’s no other workaround unfortunately.
We generally have an issue for isolating namespaces in https://github.com/matomo-org/wp-matomo/issues/233 but it’s unfortunately not trivial and we’ll aim to do this as part of the Matomo 5 release. We can’t do this any earlier as it would be breaking APIs for Matomo plugins.
Thanks for your understanding. I’ll mark this for now as resolved as we heard from other users that the latest update fixes the issues but feel free to comment should you run into any issues after giving their update a try. Hope this helps @wadih
Great @yvessaintlary . Glad you found the problem and could work around it.
Thanks for this @yvessaintlary
I just checked and it seems the redirect is only happening when you are logged in but not when you are not logged in. Maybe there is some configuration or plugin that prevents the redirect for not logged in users? I’ve viewed your page in incognito mode and then there was no redirect. This explains the issue.
Hi @codeispoetry thanks for this update. Very appreciated. I’ve added your notes to the original issue. We’ve scheduled the work for this but this can still take a while. The escaping issues aren’t always an easy fix unfortunately since we wouldn’t want to regress any other links and also want to make sure there won’t be any security issues from this.
@yvessaintlary they should be redirected by WordPress indeed. Maybe it’s not always working for some pages. For the pages reported in Matomo, can you maybe check if they are accessible without the trailing slash? If that’s not the case, is there a chance you could create a user for us with the Matomo Super User role capability in your WordPress? If so, could you create a user for wordpress@matomo.org ? We would only have access to the Matomo part in your WordPress and nothing else.
Hi @theolg this is currently only possible when using our standalone Matomo On-Premise when it’s not installed as part of WordPress see our installation guide: https://matomo.org/docs/installation/
We have a guide for how to connect Matomo with Google Data Studio here: https://matomo.org/faq/new-to-piwik/how-to-import-matomo-data-in-to-google-data-studio/ but it only works with our Matomo On-Premise or Matomo Cloud.
This is because in our Matomo for WordPress plugin we have disabled our Matomo API as WordPress comes with it’s own API. It may be possible to connect Google Data Studio using the WordPress REST API and our WordPress API (see https://developer.matomo.org/api-reference/wordpress/restapi-reference) but I haven’t tested it. It basically depends if you can use the WordPress REST API with some authentication token in a URL. Sorry I don’t have more details/clear answer on this.
If it is a hard requirement then the best/easiest way would be using Matomo On-Premise and installing it separately for example next to WordPress. It’s also free see the differences between Matomo for WordPress and Matomo On-Premise: https://matomo.org/faq/wordpress/what-are-the-differences-between-matomo-on-premise-and-matomo-for-wordpress/