Forum Discussion
Forward utm parameters from landing page
A scalable solution is to capture the UTM parameters in the URL upon landing and store them (e.g., in localStorage, sessionStorage, or a cookie). Then, when the user submits the lead capture form and gets redirected, the stored UTM parameters can be appended to the redirected URL.
Capture UTM Parameters – Use JavaScript to extract utm_source, utm_medium, utm_campaign, etc., from the URL and store them in localStorage or a hidden form field.
Persist UTM Data – If users navigate away, store the UTM parameters in sessionStorage/localStorage or pass them along via hidden fields in the form.
Append UTM Parameters on Redirect – When redirecting after form submission, append the stored UTM parameters to ensure attribution is maintained.
Optional: If Braze supports Liquid templating or custom scripting, use it to dynamically inject UTM parameters into the redirect URL.
This method avoids the need for multiple landing pages and ensures each ad platform gets proper attribution.
Related Content
- 9 months ago
- 2 months ago
- 12 months ago