googleanalytics / autotrack

Automatic and enhanced Google Analytics tracking for common user interactions on the web.
Other
4.92k stars 560 forks source link

queryParamsWhitelist does not work #245

Open coleh33 opened 4 years ago

coleh33 commented 4 years ago

I have implemented the cleanURLTracker plugin with the queryParamsWhitelist option enabled. However, when testing in Google Analytics the page is stripping all query strings, even the ones that are in the whitelist. This feature seems to be broken.

ga('require', 'cleanUrlTracker', { stripQuery: true, queryParamsWhitelist: ['s', 'id', 'd', 'cat'] });