RegEx for Google Analytics Conversion Goal

88 Views Asked by At

I've tried to create a regex for the following checkout page:

https://checkout.returnonart.com/pay/cs_live_b1sHcLQqcRrQV8C7LXDzSScPgXBp3X4nPkWyCixPl2dj5pEy9oKiq8Y4cO#fidkdWxOYHwnPyd1blppbHNgWnE9dkJGZG59R3BtbzVSMkBNcm1kb2xycjU1YTBLbUR1ZGEnKSdjd2poVmB3c2B3Jz9xd3BgKSdpZHxqcHFRfHVgJz8naHBpcWxabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl

The first part is static until /cs_live_

This part is dynamic: b1sHcLQqcRrQV8C7LXDzSScPgXBp3X4nPkWyCixPl2dj5pEy9oKiq8Y4cO#fidkdWxOYHwnPyd1blppbHNgWnE9dkJGZG59R3BtbzVSMkBNcm1kb2xycjU1YTBLbUR1ZGEnKSdjd2poVmB3c2B3Jz9xd3BgKSdpZHxqcHFRfHVgJz8naHBpcWxabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl

So far I have this: ^checkout\.returnonart\.com\/pay\/cs_live_?([A-Za-z0-9\-]*) but it doesn't work, if I verify this goal via Google Analytics.

2

There are 2 best solutions below

4
Michele Pisani On

Try this pattern because probably the cause is the domain in the regex. The domain is not present normally in pagePath in Google Analytics:

\/pay\/cs_live_
0
brazz On

thank you very much for your support. Since I found a workaround (button click event), the issue is solved.