Yes, but demo1.site.com and demo2.site.com are in the same website (called DEMO SITE) and share same tracking ID
I have to select the urls with a filter and that’s what I did.
In detail this is what I did:
I created a Custom VIsit Dimension “Complete URL”
in tag manager i created a variable called “Complete URL Variable” of type “url variable” and i set “Url part” as “Full”
in tag manager i created a variable called “Tracking code DEMO"Variable” of type “Matomo Configuration” and, in section “Custom dimension” i set link between Custom Visit Dimension ID and variable “Complete URL Variable”
in custom report i created “Most viewed page Demo 1”
Custom report “Most viewed page Demo 1” configuration is:
What i don’t understand is why sometimes, in some row, it appears dome2.site as value of “Page Url Dimension” and demo1.site as value of “Complete URL Custom Dimension”
Why Matomo assign two different urls to the two variables? Why sometimes the variable Page Url takes on a value that it doesn’t respect the filter rule?
Yes, i tried to set both, custom action dimension and custom visit dimension, for subsite, and result is (considering only home page of subsite for test):
pageviews for custom action dimension and pageviews in standard report are equal
pageviews for custom visit dimension are less than pageviews in standard report
so, custom action dimension seems to give the correct filtered result.
But I’m not very clear difference between custom action dimension and custom visit dimension. I got an answer from the empirical evidence but… i didn’t understand the logic…