Segment that excludes Page URLs not working?

I’ve built a segment to filter out localhost, dev and other types of internal and test traffic, but it does not seem to be working. I’m doing very basic logic like:

  • Page URL does not contain localhost OR
  • Page URL does not contain staging OR
  • Page URL does not contain dev.webflow.io

But when I apply it, I still see pages with those URLs in the Behavior > Pages report.

Hi,
Welcome to the community!

Can you provide me with a URL to the site you are referring to? You can leave it here under the post or share it with me via dm.

1 Like

The site we’re trying to track are:

I’m trying to exclude stuff like:

I’ve attached screenshots of my segment and after applying it showing that it’s not excluding those URLs.

I think those should be AND instead of OR.

2 Likes

Yes, I can only confirm what @addison pointed out. The segment should contain AND and not OR.

I copied your segment and modified it so that the dimensions are in the AND section and not in the OR section. The segment that I created works as expected and filters out the data for your staging sites:

Here is what the segment should look like to work as intended:

2 Likes

Ah, thanks, @addison and @asinior. I think the the way OR is laid out in the UI is a little confusing, but I can confirm what you both suggested worked. It can also be done with does not match regex of localhost|8080|staging|webflow.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.