Welcome to WebmasterWorld Guest from

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Need A Hand With Google Analytics Filters Please

9:31 am on Nov 8, 2013 (gmt 0)

New User

5+ Year Member

joined:Dec 3, 2012
posts: 24
votes: 0


I need to set up a filter (or segment) so we can view all product page stats together in one report. In other words we need to be able to report on just a list of product pages for "Pageviews", "Bounce Rate", "Revenue" and so on like you can view under "Site Content".

I have been looking for filters and segments for the past hour or so to do this but as our urls don't have id= for product ids so I can't work out how to tell analytics I want a report on pages that end in /productnumber only!?

Our url structure for products/categories is:

The number at the end is a random product number as you likely guessed ;)

So my plan was to set up a filter or segment saying if the url starts with /products and ends with /number include it in the report.

My problem is I can't find how to do this! For example, what would you put in for /number to tell analytics to only include urls that end with /random-number? I know I should be able to create a regular expression on the filter so only urls with numbers will appear be used with Regex, but I can't work out the code to enter in the filters.

Can anyone help me with the code for this one as I have tried a few different ones I thought might work with no luck and I don't want to continue trying more 'random' codes in case I mess something up.

FYI: I'm adding these filters to a copied profile not the original and know it will only work for new data not old data.

Many Thanks,