Petr Novák
Petr Novák

Reputation: 115

Regular expression (regex) in google analytics

Now I am setting up aims in Google Analytics.

All is OK, if I choose "beggins with a string"
http://stadionmanager.com/cs/intro/team/default/

But if I want to choose regular expression to replace "cs", it doesn´t work.
http://stadionmanager.com/(.)/intro/team/default/(.)

Please, any suggestions? Thanks a lot!

Upvotes: 0

Views: 97

Answers (1)

hwnd
hwnd

Reputation: 70732

You can try the following.

Search: /[^/]+/(intro/team/default)/
Replace: /foo/\1/somemorecharacters

If you are using Advanced Filtering, you could possibly do:

Field A, Request URI: ^/[^/]+/(intro/team/default)/
Output,  Request URI: /foo/$A1/somemorecharacters

Upvotes: 2

Related Questions