Analytics
3.4K members online now
3.4K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

Track dynamic subdomains

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello,

 

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.

1 Expert replyverified_user

Track dynamic subdomains

Rising Star
# 2
Rising Star

Hi JJFossey,

 

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.

 

Best,

 

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn