简体   繁体   中英

Google Analytics Exclude URL Query Parameters

I am trying to exclude all URL's that contain a php query (? in the url).

Example:

 mysite.com/mypage?Go_Away

Should Register through Google Analytics as

mysite.com/mypage

I'm sure there is a way to do it with filters but I would rather use Google Analytics Exclude URL Query Parameters option if I can.

I am using /? Which should register as a question mark and not return any URL's with a ? in them yet it is still doing it...

Does anyone have any ideas on how I could achieve this?

The "exclude query parameters" takes a list of named parameters (with ?param=Query you woukd need to enter "param"). This won't work for you. So you either have to use filters after all, or you use virtual urls in your trackingcode and pass the url withwout parameters (for example uf you're using the asynchronous tracking code you could use the "pathname" property of the window.location object as a second parameter to your trackpageView call).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM