> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.unicornplatform.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to connect MailerLite form integration

This guide details how to connect the [MailerLite](https://www.mailerlite.com/) integration to forms for collecting users' data from your website. 

![User data collected by MailerLite](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/image-1_aqtrm6.png)

|| Please note that this integration will not work with MailerLite Classic (the old version of MailerLite).

# 1. Log in to your MailerLite account

To get started, you should log in to your account. Or, if you don't have an account yet, sign up.

![MailerLite log in screen](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/image-2_4ze8u.png)

# 2. Create a form on MailerLite

On the left panel, select the **Forms** tab.

![MailerLite dashboard](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/dashboard-mailerlite-2022-07-0_17pngnh.png)

Select the **Embedded forms** option and click **Create**.

![Selecting a form option](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/forms-mailerlite-2022-07-04-15_5z2pqq.png)

Give your form a name and click **Save and continue**.

![Naming a form](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/new-form-mailerlite-2022-07-04_ypjfuz.png)

Create a subscriber group, or select an existing one. Then click on **Continue**.

![Group selection](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/form-groups-2022-07-04-15-39-3_1awm9so.png)

Skip editing the form and click **Done editing**.

![Editing the form](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/form-drag-drop-editor-2022-07-_1er5pnl.png)

# 3. Connect MailerLite to Unicorn Platform

Scroll down the page a little bit, and you will see the options for embedding the form. Choose **HTML code**.

![Embedding options](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/monosnap-form-overview-2566-07_1xpngh4.png)

Then, you need to copy the form action from the code. To find the required portion of the code, use the page search with the keyword "action" ( `Cmd + F` or `Ctrl + F` on most browsers).

![Searching for the necessary piece of code](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/image-3_1s5dwlu.png)

Select and copy the value of the action. Please do not include the quotes.

Example of the correct form action: `https://assets.mailerlite.com/jsonp/83576/forms/59797047075669756/subscribe`

![Selected form action](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/name-overview-2022-07-05-13-40_gumh7b.png)

|| Hint: You can slightly decrease the browser window to make the code field wider.

Now paste this copied string into a Unicorn Platform component which contains a MailerLite form.

![](https://storage.crisp.chat/users/helpdesk/website/-/7/e/7/8/7e782a40c0560c00/chromez0fvyg13mm_oc73i.gif)

Done! Your form will now collect visitor emails and send them to your MailerLite group.

# 4. Creating additional form fields

If you would like to collect more than just emails (e.g. names or phones), you will need to do an additional configuration.

First, add the required fields to your Unicorn Platform form.

![Unicorn Platform form editor](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/image_12ukfbi.png)

Open the new field's settings and check its name.

![](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/chromeinuzomjgsg_1903p0.png)

In MailerLite, go to **Subscribers** -> **Fields**. Check if the field name in Unicorn Platform matches one of the default names in MailerLite.

|| Letter case doesn't matter, meaning that "NAME" = "Name" = "name"

![](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/chrome7lcjdtvgfk_1rg4ii7.png)

In our example, the field name in Unicorn Platform is "FNAME". MailerLite doesn't have a TAG with this name, but it has a TAG named "name". To connect the new field to MailerLite, we need to change the field name in Unicorn Platform to "name".

![](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/chromeprbmzskn4i_oa1mst.png)

The next field's name is "WEBSITE".

![The "WEBSITE" field name](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/image_87hqp2.png)

MailerLite doesn't have a field named "Website", so we need to create one. To do so, click **Create field**.

![](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/chromeh5sar63urq_ihyvcr.png)

And enter the required field name.

![](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/chrome2girsi8b5a_1xh56uo.png)

Now the field named "WEBSITE" is also connected to MailerLite.

![](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/chromesew0u8j877_116ijcw.png)

|| In the "Name" field on the website, use only the name from the "Tag" field in MailerLite.

###### ⚠️ Before launching, please make sure that all form fields on your website align with the fields in the MailerLite form.

![](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/chromenzeumpcdgv_p81re1.png)

And that's it! Now MailerLite will collect the visitors' data properly ✨

![](https://storage.crisp.chat/users/helpdesk/website/7e782a40c0560c00/chromeelsawmrxxe_1sbec7.png)

Facing difficulties setting up the integration? Feel free to contact us via support chat 🙂