Prefill Google Forms with UTM Grabber
UTM attribution overview
HandL UTM Grabber stores campaign data in the browser. This guide shows how to get that data into Google Forms UTM Tracking Integration using hidden fields on your WordPress forms.
Google Forms UTM Tracking Integration and UTMs
Google Forms supports prefill via URL params. Build the prefill link from handl_utm before redirecting.
Steps
// Example: append entry.XXXXX=prefill for each hidden question ID- Get entry IDs from Google Form prefill link tool
- Redirect from WP with params from handl_utm
Prefill hidden fields
UTM Grabber fills inputs whose name matches a tracked parameter. Field names must line up exactly. List of params: Native WP Shortcodes.
<script>
jQuery(document).ready(function() {
if (typeof handl_utm === 'undefined') return;
handl_utm_all_params.forEach(function(param) {
var val = handl_utm[param] || (typeof Cookies !== 'undefined' ? Cookies.get(param) : '');
if (val) jQuery('input[name="' + param + '"]').val(val).change();
});
});
</script>No shortcode setup? See Hassle Free Implementation.
Need every click ID in your CRM? Jump to Send Google Forms UTMs via Webhook.