I am noticing a few variations of the same page in my google analytics reportings e.g.
/flash.php
/flash/
/flash
Does anyone know a (safe – won’t mess up any data) filter to consolidate all urls into the /flash format (remove the extension and any trailling slashes)?
Much appreciated.
To merge these URLs into one, the solution is to use a Search & Replace Filter, or an Advanced Filter, depending on your usage for it.
For the case of only one page with this matter, the solution is to use the S&R filter:
1 – Go to your filters page, inside de profile you wish to apply the filter to
2 – Create a New Filter and select Custom Filter as the Filter Type
3 – Select Search and Replace
4 – Select Request URI as the Filter Field
5 – Type \/flash.* as the search string
6 – Type /flash as the replace string
Done, every URL that contains more than /flash will be merged into this one /flash one.
You can learn more about the search and replace filter here
For the case of many pages with this matter, the solution is to use the Adv filter:
1 – Go to your filters page, inside de profile you wish to apply the filter to
2 – Create a New Filter and select Custom Filter as the Filter Type
3 – Select Advanced
4 – Select Request URI as the Filter Field A
5 – Type ^(\/[\w\-]*)|^(\/)$ as the Extract A
6 – Select Request URI as the Output
7 – Type $A1$A2 as the Constructor
Augusto Roselli – Web Analytist at dp6