I have two landing pages:
/aa/index.php/aa/index/[sessionID]/alpha /bb/index.php/bb/index/[sessionID]/bravo
Since the session ID is unique, each landing page will be tracked as different pages. So I need a filter to remove sessionID. This is what I want to track:
/aa/index.php/aa/index/alpha /bb/index.php/bb/index/bravo
I created a search and replaced the user filter in the request URI:
Search String: /(aa|bb)/index\.php/(aa|bb)/index/(.*) Replace String: /$1/index.php/$2/index/$3
But I get the message /$1/index.php/$2/index/$3 in the control panel the next day. So I tried /\1/index.php/\2/index/\3 but I got very strange results, //aa/index.php/aa/index/alpha/index.php/aa/index/aa .
Does anyone know how to reference grouped patterns in a replacement string?
My solution: I was able to solve this problem with an advanced filter. My decision:
Field A => Request URI: /(aa|bb)/index\.php/(aa|bb)/index/(.*)/(.*) Field B => - Output to => Request URI: /$A1/index.php/$A2/index/$A4
source share