We are looking to start using search bars in the headers of our emails so a customer can type in their local town and on click, it takes them through to the website of the closest site to them, see below.
However, we're having an issue with the tracking breaking - if tracking is disabled for this link it works perfectly but if tracking is kept on the link it does not work and a 'requested URL cannot be found' error message is displayed.
The below script is used in the HTML for the search bar to pull in what the customer inputs but it appears the GA tracking doesn't like it when applied and breaks. To note, the 'abcd' in the below is just for illustrative purposes.
If the tracking is enabled for the form action URL then it won't work because the action URL will be replaced with the adobe tracking URL and that tracking URL does not support form submission with extra parameters and even if you manage to support the extra search parameter then the tracking URL will not forward your search query to https://www.abcd.co.uk/abcd/"
You will have to disable the tracking for this URL to make this work.