# Capture UTMs/Gclid in registration form with HandL UTM Grabber

## UTM attribution overview

This guide explains Capture UTMs/Gclid in registration form with HandL UTM Grabber. It helps you capture campaign attribution on checkouts, orders, quote requests, and ecommerce conversions and keep the marketing context needed for accurate reporting across forms, bookings, signups, and sales.

You can add any UTM fields and handl_ fields [Native WP Shortcodes](https://docs.utmgrabber.com/books/102-getting-started-for-handl-utm-grabber-v3/page/native-wp-shortcodes) to your registration form. 

Here we explain how to add gclid, but this can be extended to adding any utm or other fields.

```
function handl_woocommerce_add_fileds_to_register() {?>
	<input type="hidden" class="input-text" name="gclid" id="reg_gclid" value="<?php esc_attr_e( $_COOKIE['gclid'] ); ?>" />
	<?php
}
add_action( 'woocommerce_register_form_start', 'handl_woocommerce_add_fileds_to_register' );
```

You can add this code to your template file or functions.php