Is there any way to limit the querystring in the URLs being sent to Snowplow?
I found out that you can set the the URL into something custom, i.e snowplow(‘setCustomUrl’, ‘https://sdasd.com’), but is there a simpler way to do this? This gives me the impression that this has to be done to all pages where page view events are invoked.
However, it’s an unusual thing to need to do - the enrichment process will parse the url into its individual components, so if you need to query the page url or path (or a combination of them), you can do so using the canonical fields described here.
Is there a specific use case in mind whereby you need to strip the querystring prior to sending the data through?
This is the use case: After a form submit the user gets redirected to a destination page with some user-specific information generated. This data can be stored in the querystring of the URL for which can be personal-sensitive. We would therefore like to track events on this specific page but leave out the querystring.
If you have potentially personal data in the URL I’d strongly encourage you as much as possible to push for its removal rather than having your analytics tools overwrite the URL.