user3304303
user3304303

Reputation: 1043

Is this search and replace Analytics rule trimming the URL to just root domain?

In our Google Analytics account I saw this Filter rule setup:

SEARCH AND REPLACE the Request URI
Search String:  ^([^\?]+)\?.*
Replace String:  /

From what I can tell, with a URL like:

example.com/folder/sub-folder?variable=value

That Analytics rule is changing it to be literally just:

example.com/

Is that the proper behavior based on the rule above?

Upvotes: 0

Views: 25

Answers (1)

XTOTHEL
XTOTHEL

Reputation: 5208

No, you should always, always have a view setup in the account that contains no filters. This way you can see how the data is coming in and this really helps with debugging/identifying issues.

The filter above does exactly what you've mentioned, but you might want to look into WHY before removing it.

Also note, removing it will only affect data from the moment you remove it and forward, it will not affect the past data.

Upvotes: 1

Related Questions