AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

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

Including traffic from 2 domains

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I want to collect data from 2 domains (1 subfolder of the main domain and one tld), why my filters isnt working?

So summing it up want to get traffic from:

domain.com/de and domain.com/de/
and
domain.de

My filter looks like this:

Custom filter
Include Request URL

^(www\.domain\.de|/de($|/))

I only get traffic from http://domain.com/de

 

please help

1 Expert replyverified_user

Including traffic from 2 domains

Top Contributor
# 2
Top Contributor

Hi,

 

You can't do this using a single filter, because the Request URI field does not contain the hostname. Create a new view and set up these two filters:

 

1st filter: Add hostname to Request URI

2nd filter: Custom Include Request URI filter with a regex ^(www\.domain\.de|www\.domain\.com/de/)

 

Let me know if this works.


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