2.5K members online now
2.5K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
Guide Me

Exclude Parameters vs Advanced Filter

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Our inbound URLs include a cid=XXXXXXX parameter that I want to capture as a Custom Dimension but also exclude from my reporting.


I set up an Advanced Filter to grab the XXXXXXX value and store it as a custom dimension.  I let that run for a while until data started coming in. It worked.


So then went to the View setting and set the Exclude URL Query Parameter to exclude cid. However, while the cid parameter no longer appears in my reports, I am no longer capturing the XXXXXXX value.


Is there a way to accomplish both of these?

Thank you for your insights.

1 Expert replyverified_user

Re: Exclude Parameters vs Advanced Filter

Top Contributor
# 2
Top Contributor

Hi @Timothy l :-)

The Exclude URL Query Parameter setting gets applied before any filters get applied.

Therefore, I would remove the Exclude URL Query Parameter option,

and instead create another filter to strip that query parameter from the urls,

and then make sure it is assigned a filter order after the Advanced filter that grabs the cid value and stores it as a custom dimension, since filters are applied in the order they are assigned.




Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here