To pass UTM parameters of a submitter into a hidden field in Webflow and integrate this data with Mailchimp, you'll need to follow a few steps. This involves capturing UTM parameters via URL, storing them in hidden form fields, and ensuring that this data is sent correctly to Mailchimp.
utm_source, utm_medium, utm_campaign).
```javascript
<script>
function getUrlParameter(name) {
name = name.replace(/[[]/, '\[').replace(/[]]/, '\]');
var regex = new RegExp('[\?&]' + name + '=([^&#]*)');
var results = regex.exec(location.search);
return results === null ? '' : decodeURIComponent(results[1].replace(/+/g, ' '));
}
document.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('[name="utm_source"]').forEach(function(field) {
field.value = getUrlParameter('utm_source');
});
document.querySelectorAll('[name="utm_medium"]').forEach(function(field) {
field.value = getUrlParameter('utm_medium');
});
document.querySelectorAll('[name="utm_campaign"]').forEach(function(field) {
field.value = getUrlParameter('utm_campaign');
});
});
</script>
```
<head> tag).
In summary, you need to capture UTM parameters from the URL, store them in hidden fields of a Webflow form using JavaScript, and ensure these fields are properly integrated with Mailchimp. This involves creating hidden fields, adding a script for capturing parameters, and integrating with a third-party service for seamless data transfer.