Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have urls like the following:

  • http://example.com/item/1

  • http://example.com/item/1341

  • http://example.com/item/33324

I want to set up a funnel in Google Analytics and I understand that I can use a regular expression.

What would i enter to match all the above URLs i.e /item/#{id}?

share|improve this question

migrated from stackoverflow.com Jul 4 '11 at 10:41

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers 2

/item/[0-9]* 

should do it. You can test it out by using the Find URL field at the bottom of the Top Content report (old analytics) or on the Site Content->Pages report on the new interface you can do an advanced filter and enter it as a regular expression.

share|improve this answer
add comment

Technically, assuming you want matches to only /item/#### and not allow /item/ (without a number), you should use:

/item/[0-9]+

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.