Issue with embed_url and refer field with multiple website

We are currently using the embed_url and referer fields to capture the current page URL and the previous page URL. However, we are experiencing inconsistencies with the data being returned.

In many cases, both the current URL and previous URL fields are empty. In other instances, the URLs are returned with query string parameters instead of the clean page URL.

For example:

  • Website URL: https://abc.com

  • Expected Current URL: https://abc.com

  • Actual Current URL Returned: https://abc.com/?utm_source=facebook

Similarly, there are cases where the URL fields are completely blank and no page information is captured.

Could you please confirm whether there is a more reliable field or method available to consistently capture the clean current page URL and previous page URL without tracking parameters?