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

Google Analytics view include traffic only from two sub domains filter

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have a site that has cross-domain tracking setup on it for 4 domains. 2 of those are subdomains from one domain. I have been trying to setup a filter for a view that only includes traffic from those two subdomains but not luck. subdomain structure is as follows:

 

http://sub17.domain.com

https://sub17.exh.domain.com

 

Any thoughts on what the filter regex should looks like?

1 Expert replyverified_user

Google Analytics view include traffic only from two sub domains filter

Top Contributor
# 2
Top Contributor

Hi,

 

You can try ^sub17(.+)domain.com$, it will include hostnames starting with sub17 and ending in domain.com so it should work for your subdomains. You can test regexes using this tool: http://www.analyticsmarket.com/freetools/regex-tester

Let me know if it worked.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital