Is it a weird user experience to add parameters to a url just for internal tracking?

I have an internal request to add parameters to the url like ?from=productPage&searchTerm=[term] so that pages can be tracked for analytics. This feels like a weird smell to me, especially as the user can't change them to get any meaningful change. For example changing the searchTerm in the url doesn't change what's shown on the page, it just tells our analytics that the user used that term to get to the current page.

I'm also able to track these events in other ways by pushing to the GTM dataLayer.

It just felt weird to me to manipulate the url just for the sake of tracking, when that can be done in other ways, particularly when this adds no value to the user - of course other than us being able to make improvements based on analytics.

Just wondering if anyone had an opinion on this or could point me to why this is okay to do or why it might not be? Thanks