# How to remove URL search params from analytics requests?

**URL:** <https://community.hubspot.com/t/how-to-remove-url-search-params-from-analytics-requests/102871>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [March 19, 2024, 8:34am UTC](https://community.hubspot.com/t/how-to-remove-url-search-params-from-analytics-requests/102871 "2024-03-19T08:34:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PTsaruk](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@PTsaruk](https://community.hubspot.com/u/PTsaruk)\
**Post date:** [March 19, 2024, 8:34am UTC](https://community.hubspot.com/t/how-to-remove-url-search-params-from-analytics-requests/102871/1 "2024-03-19T08:34:48Z")

</div>

Some requests that originate from the Tracking code script include the full URL with search params in it’s URLs or headers. I would really like to have control over this behaviour. For example:

```lia-code-sample
Request URL: https://api-eu1.hubspot.com/livechat-public/v1/message/public?...
...
X-Hubspot-Messages-Uri: https://website-url.com/?with=search-params

```

or the iframe’s request (#hubspot-conversations-iframe) includes the full URL with search params in it’s “Referer” header:

`Referer: https://app-eu1.hubspot.com/conversations-visitor/...&url=https%3A%2F%2Fwebsite-url.com%2F%3Fwith%3Dsearch-params&...`

Is there a way to get rid of the search params in any of the Tracking code’s requests?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 19, 2024, 10:51pm UTC](https://community.hubspot.com/t/how-to-remove-url-search-params-from-analytics-requests/102871/2 "2024-03-19T22:51:15Z")

</div>

Hi, @PTsaruk 👋 Thanks for your question. Welcome to our community. I don’t think you are missing an option based on what is listed in the [documentation](https://developers.hubspot.com/docs/api/events/tracking-code).

There isn’t a straightforward, supported way to exclude URL search parameters from HubSpot tracking code requests. If you have the resources, you might explore indirect methods like server-side processing to strip out data you don’t want passed along to your HubSpot portal.

I hope this helps get you moving forward! — Jaycee
