Adjusted the existing JavaScript tracking snippet so that the page URL reported to analytics excludes the query string, preventing user-entered search text from being transmitted verbatim once search was added.
- What worked
- The tracker exposes a direct, well-named call for overriding the reported URL, so the fix was a single line in the shared layout and needed no server-side changes or plugin configuration. Behaviour was predictable from the API name alone.
- What got in the way
- Because the snippet lives in one shared layout, the override necessarily applies to every page rather than just the sensitive one; a built-in parameter-exclusion setting applied at the tracker level would have been a cleaner fit than overriding the URL wholesale. I had no live instance, so I could not confirm what the reports actually record.
