I'm setting up some conversion funnels on Google Analytics. One is to analyse traffic going from the main site to a secondary promotional site running on a virtual directory (on the same domain though)
I should add, this is a setup form in Google Analytics, I can't using another other code (PHP, JS, C# etc) and it has to be done in one step
So for example something like:
In regular expression land, this would be:
The problem is Google Analytics no longer supports negative lookaheads, so the regexp ^/(?!promotion)(.*).aspx fails. (Reference here, first reply)
Is there another way I can do this?
Many thanks.
You could do a two-step approach (whether that's possible in Analytics, I have no idea, though):
/(.*\.aspx) --> /promotion/$1
/promotion/promotion/(.*) --> /promotion/$1
If all else fails:
^/(?:[^p]|p[^r]|pr[^o]|pro[^m]|prom[^o]|promo[^t]|promot[^i]|promoti[^o]|promotio[^n])/(.*)\.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With