RegEx for Dynamic URL Goals settings in Google Analytics
Posted
by gaaustralia
on Stack Overflow
See other posts from Stack Overflow
or by gaaustralia
Published on 2010-05-21T09:57:56Z
Indexed on
2010/05/21
10:00 UTC
Read the original article
Hit count: 302
Hi,
I have tried to work this regex to set up a goal in GA for 2 days, but I cannot get my head around it...
The url format is like this: /purchase.php?cDd=1&transaction_id=xxxxxxx&verify=xxxxxxxxxxxxxxxx=&method=creditcard&type=purchase
transaction_id= is populated with a sept of numbers verify= is populated by a string of numbers, letters in both caps and lower case
Basically I would like to only match URLs which finish by "&method=creditcard&type=purchase"
I have tried to just put &method=creditcard&type=purchase but it does retrieve other URLs too
Would anyone has any ideas
© Stack Overflow or respective owner