Combining similar URLs in Google Analytics (with a twist)

前端 未结 2 1616
忘掉有多难
忘掉有多难 2021-01-16 03:47

I have a lot of similar URLs that I would like to merge in Google Analytics. I\'ve managed to merge a lot of them already. However I\'ve now run into a bit of a problem.

相关标签:
2条回答
  • 2021-01-16 04:09

    You can create an Advanced filter that combines the relevant parts for you:

    The output would be /article/edit or /article/add, with everything and anything between those removed.

    EDIT: If you just want everything, regardless of /edit, /add, /12341/edit, /7305/add, /whatever/edit, to show up just as /article, then you can just change your filter like this:

    Field A: Request URI = (/article)/.*

    Output to: Request URI = $A1

    This will convert the following examples:

    • /article/123/edit -> /article
    • /article/2345/add -> /article
    • /article/anything -> /article
    0 讨论(0)
  • 2021-01-16 04:26

    From this Combining similar URLs in Google Analytics you can find out how to do it. You need to use a regex. Something like this should work (did not test it).

    (article\/)[0-9]*\/(edit|add)
    
    0 讨论(0)
提交回复
热议问题