Hi everyone,
We are using a worker that strips query string parameters from a URL when searched again a regex that contains possible campaign parameters.
We slightly altered the regex pattern by adding a new one:
Old version:
const urlRegex = new RegExp('(refreshce|gclid|cx|ie|cof|siteurl|zanpid|origin|utm_(source|campaign|medium|term)|fb(cl)?id|fbclid|mr:[A-z]+ref(id|src))');
New version:
const urlRegex = new RegExp('(refreshce|gclid|cx|ie|cof|siteurl|zanpid|origin|gad_source|utm_(source|campaign|medium|term)|fb(cl)?id|fbclid|mr:[A-z]+ref(id|src))');
While it continues to work for all parameters used to be in the previous one, it cannot work for the newly added gad_source
There’s more than 3 hours that the code has changed.
Any ideas?
Thanks