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

Exclude Hostname + Request URI

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi Guys,

 

I need to exclude traffic to an specific domain with an specific language. In that view there's multiple domains, being one of them a microsite.

 

www.sitename.com 

www.microsite.com

 

Is there a way to create a filter which combines Hostname (microsite) + Request URI (language)

 

I'm at the moment excluding only request URI,

 

For example: In the case of  Spain (www.microsite.com/es), i'm excluding the rest of languages using:

 

 

^/(de|nl|en|it|uk|fr).*

 

The issue is that i'm taking the risk of excluding pages for my main site that request URI starts with one of the above. 

 

I have also tried using the one below so i cut off the subdirectory but i'm then excluding the landing page which is www.microsite.com/es

 

^/(de|nl|en|it|uk|fr)/.*

 

 

Any advice?

 

Many thanks,

David

 

1 Expert replyverified_user
Marked as Best Answer.
Solution
Accepted by topic author David S
September 2016

Re: Exclude Hostname + Request URI

Rising Star
# 2
Rising Star
Hey David,

Are you already combining hostname and URI? With a set up like that I would expect it. If so you could do this in two steps:

1. Combine Hostname and URI
2. Use an include filter for exactly what you want to include e.g. microsite.com/es (this helps prevent some spam too)
3. Exclude anything else you would like

Okay, that was three steps. Smiley Happy

https://support.google.com/analytics/answer/1012243?hl=en


Best,

Theo Bennett
Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

Exclude Hostname + Request URI

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Can we create a profile for the following scenario.

 1.   https://myexample.com/Login.htm

2.    http://yourexample.com/addthis_dashboard.cms

in the above examples:

from 1st url: we need to add myexample.com as hostname in the filter.

From 2nd url: we need to add only "addthis_" as request uri in the filter. please note that here domain name is difference from 1st url.