Track UTMs in Klaviyo Forms with UTM Grabber
UTM attribution overview
Capture HandL UTM Grabber attribution in Klaviyo embedded forms and sign-up pages on WordPress by mapping hidden fields to UTM Grabber cookie values.
Add hidden properties in Klaviyo
- In Klaviyo, create profile properties for each UTM parameter you want to track
- Add hidden inputs to your Klaviyo embed form with
nameattributes matching property names - UTM Grabber auto-populates matching input fields on page load
Manual prefill script
<script>
document.addEventListener('DOMContentLoaded', function() {
if (typeof handl_utm === 'undefined') return;
Object.keys(handl_utm).forEach(function(key) {
var el = document.querySelector('input[name="' + key + '"]');
if (el && handl_utm[key]) el.value = handl_utm[key];
});
});
</script>
Parameter list: Native WP Shortcodes.