views:

30

answers:

2

I have a page that displays details of a program, I want to set an advanced segment in google analytics to only return pages that contain

/program/view/path_to_program

so only program detail pages display, the third segment pages are the only pages I want to display in the google analytics results.

I know this will take some sort of regular expression and I am not very familiar with it.

alt text

A: 

Google Analytics Regular Expression Help Page Not exactly sure what you want to match but /program/view/[a-Z]+ might work.

Jay
A: 

It sort of sounds like you want two separate things. One, you want to segment out visits that were on a program page. For that, you don't really need a regular expression; you could just do a "Starts with" condition, and then enter exactly what you've entered in the screenshot

For the second aspect, it kind of sounds like you don't want '/program/view' to appear in the Content section for this segment. ie, /program/view/blah would just appear as /blah in this segment.

Unfortunately, you can only do that with a filter (and that cannot be done retroactively). Is that what you're trying to achieve?

yc