RegExp alternative to negative lookahead match for Google Analytics

后端 未结 1 930
眼角桃花
眼角桃花 2021-01-02 14:13

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 director

相关标签:
1条回答
  • 2021-01-02 14:40

    You could do a two-step approach (whether that's possible in Analytics, I have no idea, though):

    1. Replace unconditionally:
      /(.*\.aspx) --> /promotion/$1
    2. Replace again:
      /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
    
    0 讨论(0)
提交回复
热议问题