Confirmation removes the UTM parameter and appends a '?' to the URL

Hi everyone,

I’m encountering an issue with UTM parameters being captured in hidden fields on my form.

When the form is submitted, the URL is stripped of its UTM parameters and a ? is appended to the end. I’m using a text confirmation (not a redirect), and I have hidden fields set up to capture utm_source, utm_medium, and utm_campaign.

The problem is that since I’m also using the Google Analytics plugin to push the GFTrack form submission event to the dataLayer, the URL change happens before the hidden fields can capture the UTM values. As a result, the UTM parameters aren’t being recorded in the submission.

Has anyone experienced this or found a workaround to ensure UTM parameters persist through form submission when using text confirmation?

Thanks in advance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.