The website in question has different parts and functionality. E.g. one part is a blog, another a shop and then there are meta-pages. The site is structured as follows:
example.com/blog // Blog main page
example.com/blog/post-name // Blog posts
example.com/shop // Shop main page
example.com/shop/product-name // Products
example.com/legal // Meta page
example.com/about // Meta page
I want to create a segment in Google Analytics of sessions which did not leave the blog. Or in other words: once the user loads a page which does not start with /blog
, the session is excluded from the segment.
Therefor I created the following condition for my Blog only segment under *Admin > Segments > Blog only > Conditions.
I read this as "Exclude all sessions from this segment which have a page that starts with anything other than /blog
.
However, all sessions are ending up in this segment. What is going wrong here?