-
Notifications
You must be signed in to change notification settings - Fork 58
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
Wrong URL in Matomo after moving site to subdomain #802
Comments
Hi @diginote . Thank you for taking the time to create this issue. I'm sorry to hear that you're experiencing complications. Is the issue that the visits aren't being tracked at all or that the subdomain isn't showing up in the visits log? If the issue is that the visits are being filtered out and not tracked due to the subdomain, you probably want to check the trigger that is assigned to your Matomo Analytics tag and make sure that it's not filtering by domain. |
Hi @diginote . I'm glad that the requests are being tracked. It's odd that it's not showing the URL that you are expecting. I'm pretty sure that Matomo is supposed to show the full URL, including protocol like https. Does your web server (Apache, NGINX, Tomcat, ...) use a wildcard and direct all subdomains to the same domain? Maybe the www is being removed before the tracking request is sent to Matomo. You might watch the Network tab in your browser's dev tools to see what URL is sent when tracking requests are sent to your Matomo server. Like this example request in my test site: |
Hi. I try to visualize my problem with an example: Before moving to the www. subdomain the url was https://example.com. Now we are moved to the www. sudomain, the new domain is like in the request https://www.example.com. However, I do not see the change of domain in Matomo. |
@diginote We checked internally and that's expected all urls with and without |
Hi @diginote Matomo uses that setting to remove the domain from the path. If you list nothing there, Matomo usually shows the full path. (If you leave it blank, Matomo seems to repopulate it, so confirm that it saved correctly. My workaround for that: I ended up saving a dummy address there to prevent Matomo from autopopulating that field.) |
@atom-box Thanks for the advice. I have checked the options you mentioned. |
I have the problem the other way around. For the Startpage Matomo always shows a www subdomain, even tho the page dosen't have a www subdomain. (More technical, the www subdomain is a different vhost with a 301 redirect to the variant without www) Furthermore, www is a subdomain like any other, and should never be treated the same as no subdomain. I could serve completely different content over the www subdomain. And in my case it is already the subdomain of a subdomain. So a visitor to https://subdomain.example.org/ gets logged as https://www.subdomain.example.org but a visit to https://subdomain.example.org/subpage.html gets correctly logged as https://subdomain.example.org/subpage.html I have nowhere configured anything with www |
Hello,
we started tracking in matomo tag manager for sites on a domain without a ‘www.’ subdomain (e.g. example.com). Later, all pages had to move to the subdomain ‘www.’ (e.g. www.example.com). Unfortunately, the ‘www.’ is still not listed in the visits in Matomo. Have we forgotten to update something?
The text was updated successfully, but these errors were encountered: