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ā¦