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
Incorrect link in outlinks #160
Comments
Thanks @diegoaa are you using the latest beta version? |
@tsteur Version 0.3.9 |
@diegoaa I just tried to reproduce it but it worked nicely for me. Any chance you could send me a link to your website by email to wordpress at matomo.org ? Then I would try & reproduce it there. Could you also double check the link / url is correct in your website? |
Sent email. |
Thanks @diegoaa you can remove the login again. I can reproduce it now. Apologise for this I thought you meant the issue was in the visitor log where we recently fixed this issue. It is not fixed in the actual outlink report though. Segmented visitor log doesn't work either The url seems to be already in the archive so there might be the issue? I suppose the problem is somewhere in the Actions archiving helper. Moving this issue to the actual Matomo repository as it is not an issue in WP Matomo. Here is an example request to reproduce:
@mattab do you know if this is a regression? refs refs https://github.com/matomo-org/matomo/pull/15233/files |
@tsteur I don't know if it's a regression, but since we never had this issue before afaik, something new must be happening (or indeed a regression) |
It looks like it actually works on the demo... also for recent data... not sure why it works there... also works in my local OnPremise installation... |
It actually is a big WP issue... it seems it doesn't write into
Where it then add the end has basically
instead of ending it with not sure how to fix that... WP doesn't support null values in bind parameters basically: https://core.trac.wordpress.org/ticket/12819 which is marked as wont fix. One workaround was suggested here: https://wordpress.stackexchange.com/a/143418 |
@diegoaa this should be fixed in the next release. It may not work for already tracked links/urls but all other URLs. |
Thanks @tsteur ! |
@tsteur , this is still observed in Version 0.3.10 |
Sorry, I should have described it a bit better. These outlinks for instragram and facebook are already registered wrong and thus won't correct itself even in newer reports. Only if a different outink was recorded. The only way to workaround this be probably to make a change in the database if you know how to do this? update wp_matomo_log_action set url_prefix = null where url_prefix = 0 and `type` = 2 and name like 'https://www.instag%' The same would work for facebook update wp_matomo_log_action set url_prefix = null where url_prefix = 0 and `type` = 2 and name like 'https://www.facebook%' Then future reports will have this correctly set |
@tsteur I ran the database commands as you suggested, however no change in the outlinks report. Secondly, even pages on my own domain have showed up in the outlinks report, again without the colon. |
Does this happen when you look at |
Can you maybe also describe a bit more what you are seeing there? I can't reproduce any such behaviour. Do you think there is otherwise a chance to get access to your WordPress? A user with Matomo Super User role be enough. I don't need any other access to your actual WordPress. |
@tsteur I have re-enabled the account you accessed earlier. Do look at the outlink reports for the year. |
Thanks @diegoaa I just debugged and this is a different issue... The problem is the site is running on https://www.example.com and the link goes to http://example.com meaning @diegoaa you can fix this issue by adjusting the links that appear in the outlink report to also use @mattab Not sure how this is not an issue for more people? I suppose mostly people would use the same domain for URLs in their links. The check for the same host is basically failing here: https://github.com/matomo-org/matomo/blob/3.13.1-b1/js/piwik.js#L3488-L3491 I wonder if we need for every WP installation assume |
@diegoaa actually, there is already a setting |
@mattab I suppose by default otherwise we want to do |
Or we simply enable I guess enabling |
Thanks, @tsteur I have checked the two boxes as you suggested "Track subdomains in the same website" and "Do not count subdomains as outlink". The outlink report hasn't changed, I'll check again in a day to see if it has. Did you notice the other domains in the outlink list that had missing colons? |
@diegoaa it will only fix it for newly tracked data as it was a tracking issue.
Can you remind me what the issue was here? |
Behavior - Outlinks. The outlinks listed do not have a colon : in them. For eg
instead of This makes the browser interpret the link as which then opens the site which is not the desired behaviour I ran the database commands as you suggested
However, the outlinks still are missing colons. |
@diegoaa it is working when looking at newer dates by the looks. Eg when you select yesterday's report etc. I have invalidated some of your older reports I think and it might cause them to be reprocessed and then the links might appear correctly in a few hours but I can't guarantee. The change you made in the DB was basically affecting the raw data but not already generated reports. They may now be regenerated but newer reports, for a new day or new week etc should be fine for sure. |
Behavior - Outlinks. The outlinks listed do not have a colon : in them. For eg
https//www.instagram.com/
instead of
https://www.instagram.com/
This makes the browser interpret the link as
http://https//www.instagram.com/
which then opens the site
http://www.https.com//www.instagram.com/
which is not the desired behaviour
The text was updated successfully, but these errors were encountered: