# How to collect UTMs in MailerLite

### Download official mailerlite plugin
You can download it [from](https://wordpress.org/plugins/official-mailerlite-sign-up-forms/)

### Set up your custom fields in mailerlite
Make sure your custom fields match exactly with ours for much easier integration. [Native WP Shortcodes](https://docs.utmgrabber.com/books/102-getting-started-for-handl-utm-grabber-v3/page/native-wp-shortcodes)

### Create your form in MailerLite plugin
Select the custom fields that you want to include in your form. Here we included only two out of many. Feel free to include more as you need it from [Native WP Shortcodes](https://docs.utmgrabber.com/books/102-getting-started-for-handl-utm-grabber-v3/page/native-wp-shortcodes). 

[![](https://docs.utmgrabber.com/uploads/images/gallery/2022-02/scaled-1680-/image-1645622959163.png)](https://docs.utmgrabber.com/uploads/images/gallery/2022-02/image-1645622959163.png)

### Your form will look like this
Use the shortcode for the form and include it in your page. Your form will look like this 

[![](https://docs.utmgrabber.com/uploads/images/gallery/2022-02/scaled-1680-/image-1645623328080.png)](https://docs.utmgrabber.com/uploads/images/gallery/2022-02/image-1645623328080.png)


### You will most likely hide the utm fields 
You can use the code attached to hide all the UTM fields. Make sure the list all the parameters you used from the third step. Here we only have `['utm_source','utm_campaign']` 


```
['utm_source','utm_campaign'].forEach(function(v){jQuery("[name*="+v+"]").parent().hide()})
```

### Form after hiding the fields
After removing the fields, your form will look like this. 

[![](https://docs.utmgrabber.com/uploads/images/gallery/2022-02/scaled-1680-/image-1645623483028.png)](https://docs.utmgrabber.com/uploads/images/gallery/2022-02/image-1645623483028.png)

### Test

Take your form and it should populate all the utm fields automatically. You can see the data in MailerLite dashboard (Subscribers)

[![](https://docs.utmgrabber.com/uploads/images/gallery/2022-02/scaled-1680-/image-1645623619652.png)](https://docs.utmgrabber.com/uploads/images/gallery/2022-02/image-1645623619652.png)

That's it!