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
1.5K members online now
1.5K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

Can I use segments to show sessions that visit one page and NOT another?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi Community,

 

In short, I'm trying to work out if I can have a segment that will include people who visited a product page or services page, but did NOT visit a specific page on the about us section

(products or services)-(about/management)

and in another segment, how many people DID visit either products or services pages and the the management team page (products or services)+(about/management)).

 

 

I thought the below would work for the first segment (typed equivalent as Google doesn't seem to like my pic attachment), but this segment still suggests people have visit the Management Team page. Am I doing something wrong or just misunderstanding how the segments work in these conditions?

 

Filter Session | Include

 

Page | Contains | /product page

--or--

Page | Contains | /services page

--------------------------------and-----------------------------------------

Page | Does Not Contain | /about/management

 

 Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Ben B
April 2016

Re: Can I use segments to show sessions that visit one page and NOT another?

[ Edited ]
Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆

Hello,

You can post images. After you get the error (see my screenshot), ignore it and simply press again "POST" button and it will work.

1.JPG

 

Considering your question, the segment it's not good for your situation, as here is how GA interprets the segment you created:

- include those sessions during which users saw pages that contain "/product page" or "/services page" and also pages that not contain /about/management. But, logically speaking, if you saw a page with /product page" this page it is a page that does not contain "/about/management", so you're logically speaking part of the segment defined that way. The AND in the segment definition does not work as you might expect. It does not mean that during the session the page  "/about/management" was not visited, but it means that at least one  other page than that was visited in the same session.

 

What you have to do is to define the segment a little bit differently, adding another filter and excluding sessions where you had visits on the about page, like this:

2.JPG

 

Hope this clarifies things Smiley Happy

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Ben B
April 2016

Re: Can I use segments to show sessions that visit one page and NOT another?

[ Edited ]
Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆

Hello,

You can post images. After you get the error (see my screenshot), ignore it and simply press again "POST" button and it will work.

1.JPG

 

Considering your question, the segment it's not good for your situation, as here is how GA interprets the segment you created:

- include those sessions during which users saw pages that contain "/product page" or "/services page" and also pages that not contain /about/management. But, logically speaking, if you saw a page with /product page" this page it is a page that does not contain "/about/management", so you're logically speaking part of the segment defined that way. The AND in the segment definition does not work as you might expect. It does not mean that during the session the page  "/about/management" was not visited, but it means that at least one  other page than that was visited in the same session.

 

What you have to do is to define the segment a little bit differently, adding another filter and excluding sessions where you had visits on the about page, like this:

2.JPG

 

Hope this clarifies things Smiley Happy

Re: Can I use segments to show sessions that visit one page and NOT another?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thanks Banica, for both pieces of advice. I've been so focussed on the logic that I never thought to just add another filter. This is a great solution, thank you so much for taking the time to explain it in such detail Smiley Happy

Ben