Skip to content
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

Subdomains paths in Pages / other reports #14104

Open
brenc opened this issue Feb 15, 2019 · 9 comments
Open

Subdomains paths in Pages / other reports #14104

brenc opened this issue Feb 15, 2019 · 9 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@brenc
Copy link

brenc commented Feb 15, 2019

We just rolled out Matomo (which is awesome). We noticed the same thing as this user:

The problem: In the “pages” report (and also the “entry pages” and “exit pages” reports) all URLs are mixed up independent on which sub domain they are running. First this is confusing, and second it seems to create wrong data! All index pages of the root and the sub domains are listed together as page URL “/index”. When I open the page overlay, the index page of the sub domain with the highest number of pageviews is displayed. But the data shown left hand in the “main metrics” section is the sum of all sub domains (pageviews, visits etc.). When I change the page overlay’s URL manually to another sub domain’s index page, the “main metrics” data stays the same.

So for example, we have URLs like this:

https://www.newgrounds.com/art/view/diives

In Matomo > Behavior > Pages it shows art > /index which is actually this URL:

https://diives.newgrounds.com/art/

Which is incorrect and unexpected.

We're already running this in our tracking code:

_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);

But that doesn't seem to apply to Pages and other reports.

I searched around and I don't think this user put in a ticket so I thought I'd create one.

@mattab
Copy link
Member

mattab commented Jan 21, 2020

Thanks for the report @brenc It is indeed problematic and not good enough as it is now, as it's confusing and not clear, and many users like you don't expect this behavior. The issue is that some users want the behavior of considering all alias URLs as pointing to the same site (and merging them together), while others (like you) prefer to keep them separate.

Maybe this is something we could address in Matomo 4.x?

@mattab mattab added Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. labels Jan 21, 2020
@tsteur
Copy link
Member

tsteur commented Jan 21, 2020

Not needed for Matomo 4. This can be done any time later.

@breaked01
Copy link

Hello.
Have a same issue with mixing of page urls which become from all subdomains, but they are logically separated from "main" and other domains, and may have different pages. What I can do at this moment to separate page urls? Maybe just add a "subdomain" to page url variable (like in Google Analytics) or something like this? I can write own code if it needed, but want to get some info about where to start with that problem.

@diosmosis
Copy link
Member

Hi @breaked01 , if you mean separate them in the Actions report, there's not much you can do at present. The change isn't that big though, so I created a poc in this PR: #17203

If acceptable it might be able to go in the next release.

CC @tsteur

@tsteur
Copy link
Member

tsteur commented Feb 8, 2021

@diosmosis not sure I fully understand the PR correct but thinking as it's done in archiving, might need to add a comment that this will cause maybe issues when looking at week, month, year, ... that some will have the host while some rows won't and it'll be all mixed maybe?

@diosmosis
Copy link
Member

not sure I fully understand the PR correct but thinking as it's done in archiving, might need to add a comment that this will cause maybe issues when looking at week, month, year, ... that some will have the host while some rows won't and it'll be all mixed maybe?

yeah, that would be an issue. the easiest way around this might be to make the setting unchangeable. otherwise, if we see both types when aggregating we can group by host in the one that includes host, then aggregate w/ the one w/ no host. there's no way to go from no-host to host though so that's the best we can do I think.

@tsteur
Copy link
Member

tsteur commented Feb 9, 2021

OK @diosmosis I guess we would just need to mention this in the comment for the config and also when we explain this new feature in an FAQ.

@uschindler
Copy link

There is already #17203 which looks like a good setting in the config to enable subdomains in the configuration. Unfortunately it was closed. Still waiting for it to be merged.

@uschindler
Copy link

OK @diosmosis I guess we would just need to mention this in the comment for the config and also when we explain this new feature in an FAQ.

I think this is fine like any other setting (like the number of entries in subtables). If you change those settings you have to invalidate all reports and recreate them. When you setup Matomo you do this quite often.

This setting looks like something that people won't set all the time. It would be done by people who have subdomains with meaningful names and different content. Those people only having "www.example.org" and "example.org" would never enable this.

Maybe theres a way to automatically strip the "www." during reporting like at other places of Matomo.

@sgiehl sgiehl added this to the For Prioritization milestone May 12, 2023
@tsteur tsteur removed the Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
7 participants