So, you use a single property to all your domain and subdomain, and then you realize that the report on Google Analytics mixed up because of this kind of scenario:
http://domain.com/index.html (10 pageview)
http://sub.domain.com/index.html (40 pageview)
http://super.domain.com/index.html (5 pageview)
Google Analytics only show traffic result of /index.html with 55 result ! (which most of you think its totally wrong)
How to solve this problem ?
This is where Googe Analytics Filter comes very handy !
So here’s the filter setting to solve this problem:
This is how it works… first hostname will be stored in variable A, where request uri will be stored in variable B.
The output will be replace by combination on $A dan $B…(we use one at the end of variable’s name for its the first instance)