Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove trailing slash in Google Analytics report

In Google Analytics, field Site Content report, I always receive two data about one link, one with slash and one non Like this:

/post-one.html
/post-one.html/

I want to receive only data of (/post-one.html), then I create a Search and Replace filter:

Search string: \.html/$
Replace string: \.html$

But it doesn't work. How can I do it?

like image 379
Charles Avatar asked Mar 18 '23 15:03

Charles


1 Answers

Search string: \/$

Replace string: empty string

like image 168
Avinash Raj Avatar answered Mar 24 '23 05:03

Avinash Raj