The Query Replacer Variable allows to replace URL query parameters in the page_location Event Data parameter.
Useful links:
Step-by-step guide on how to configure Query Replacer variable
Open Source
The Query Replacer Variable for GTM Server Side is developed and maintained by Stape Team under the Apache 2.0 license.