Google analytics regex goal not working correctly -


i have regex track signups site. there multiple adresses goal.

here regex:

(\/membership\/signed-up\/|\/membership\/campagin\/(?!.*(not-this-campaign)).[-\w]+\/signed-up\/)

i want match adresses:

/membership/signed-up/ /membership/campagin/random-campaign/signed-up/ /membership/campagin/other-random-campaign/signed-up/ 

but want exclude address:

/membership/campagin/not-this-campaign/signed-up/

it works, google matches address:

/membership/signed-up/step-2/

when test in http://regexr.com matches on strings want, why google analytics matching more?

try :

(\/membership\/signed\-up\/(?!.*(step\-2))|\/membership\/campagin\/(?!.*(not\-this\-campaign)).[-\w]+\/signed\-up\/) 

you regex correct, but, need ensure dont match step 2


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -