Track dynamic subdomains[ Edited ]
March 2017 - last edited March 2017
What is the best way to track dynamically created subdomains? Since there are so many subdomains, I want to create one view and then under it create a filter that shows me aggregate metrics (sessions, pageviews, etc.) for all the subdomains. Do I need to create a custom filter? What regex would I use? Basically, I want an aggregate view of all subdomain traffic. Would I create an include filter using something like: .\example\.com? Can anyone tell me what regex or parameters to use, or how to create the filter? Thank you.
Track dynamic subdomains
Yours should work; or you could do something like this for hostname ^.*\.example\.com If you server returns www.example.com that would also be included so you would want to exclude that in the next filter.
Create your filter in a test view and check your results.