Skip to main content

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

  1. In Klaviyo, create profile properties for each UTM parameter you want to track
  2. Add hidden inputs to your Klaviyo embed form with name attributes matching property names
  3. 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.

Never lose any UTMs ever 💪

Get HandL UTM Grabber V3