PDA

View Full Version : Analytics & Regular Expressions


doc816
06-21-2006, 11:50 AM
Hi,

I am not familiar with writing regular expressions. If someone can help me with this simple problem (simple for someone who knows how to write them), I'd appreciate it very much.

In google analytics goal tracking, the goal URL only has one field however, I need to input two slightly different URLs. To combat this problem, google allows users to input their URL in a regular expression format.

I need a regular expression which matches any of these two URLs:

https://www2.example.com/successfull/checkout

and

https://www.example.com/successfull/checkout

Notice the "2" is missing in the second URL.


How can I accomplish this? I'd appreciate any help.

Thanks

AdWordsRep
06-23-2006, 01:07 PM
doc816,

I am not familiar enough with Analytics to answer this myself, but I did want to point you to a valuable resource for Analytics related questions.

There are something like 1700 members in a group called AdWords API Forum (on Google Groups) who actively discuss such things. You'll find it here:

http://groups.google.com/group/adwords-api

Mods, I believe it is OK for me to mention this forum - but if I am mistaken please feel free to remove this post.

AWR

doc816
06-23-2006, 01:13 PM
:) Thank you AWR, appreciate your help.

seomike
06-23-2006, 02:59 PM
Reg Ex Syntax
https://(www|www2).example.com/successfull/checkout

This will tell Google that either www or www2 are acceptable. | acts like "or" (www or www2)...

If you plan on having more than that like www3 or www4 you could always just do this

Reg Ex Syntax
https://.*?.example.com/successfull/checkout

This would allow anything www, www2, www3, or anyother word to process as your Goal page as long as the example.com/successful/checkout is part of the url.