With the Piano Analytics SDK, the full URL (including the query string) is collected directly by modifying the addEventURL parameter in the SDK configuration with the values specified below:
See how to configure your SDK: https://developers.piano.io/analytics/data-collection/sdks/javascript/#basic-configuration