# MailerLite Integration

## Why MailerLite?

MailerLite is a more polished and fully featured newsletter solution designed for marketers. It's also much easier to use than most newsletter solutions.

{% embed url="<https://www.mailerlite.com/>" %}

## Looking for MailerLite Classic?

This guide works for the newer version of MailerLite. Please see the MailerLite Classic documentation on how to connect MailerLite Classic to your comment section.

{% content-ref url="mailerlite-integration-classic" %}
[mailerlite-integration-classic](https://docs.dlxplugins.com/comment-edit-pro/features-overview/integrations/mailerlite-integration-classic)
{% endcontent-ref %}

## Enabling MailerLite

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FtzlE1VVpOPEc9m1c9RM9%2Fdlx-000602%402x.jpg?alt=media&#x26;token=65089225-b3dd-4318-92c9-9f89b94dd294" alt=""><figcaption><p>Enable MailLite Option</p></figcaption></figure>

Visit the MailerLite settings in the Integrations tab. Click on "Enable MailerLite." You'll be prompted to enter your MailerLite API key.

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FIW5ewzUlw29KMpBs12rT%2Fdlx-000618%402x.jpg?alt=media&#x26;token=a3d7935d-5331-4ba4-902e-bc75f94eaa01" alt=""><figcaption><p>MailerLite API Token Interface</p></figcaption></figure>

{% content-ref url="../../getting-started/finding-the-plugin-settings" %}
[finding-the-plugin-settings](https://docs.dlxplugins.com/comment-edit-pro/getting-started/finding-the-plugin-settings)
{% endcontent-ref %}

### Retrieving the API Keys

Log into your MailerLite account and find the Integrations tab on the left.

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FQhcg4vkOcgAOWbkXf548%2Fdlx-000604%402x.jpg?alt=media&#x26;token=039f318e-767a-435d-ab71-b96928155097" alt=""><figcaption><p>Find the Integrations Section to Access Your API Keys</p></figcaption></figure>

Find the section for API and click the "Use" button.

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FLVeEo09NkwMrHafNAfGo%2Fdlx-000605%402x.jpg?alt=media&#x26;token=9cf253ac-9b38-4f12-84b1-4babade99638" alt=""><figcaption><p>API Use Button</p></figcaption></figure>

One on the APIs screen, click the button for "Generate New Token."

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FA5TsNj45CNM4pjj3t6EQ%2Fdlx-000606%402x.jpg?alt=media&#x26;token=7612ef6b-9f90-4dc4-9dcc-a615725522e0" alt=""><figcaption><p>The Use Button for Using the API</p></figcaption></figure>

Name the token something memorable and create the token.

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FHsftcfrqrQ70zQQpWgUt%2Fdlx-000607%402x.jpg?alt=media&#x26;token=93c5f925-2008-4eab-9ac6-1347d2e29d36" alt=""><figcaption><p>Create a Label for Your Token/API Key</p></figcaption></figure>

Once you've clicked on "Create Token", you're presented with your token (API key). Save this somewhere you can access it later such as in a password manager. You'll use this token in the Comment Edit Pro MailerLite integration settings.

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FelIOYvLhP8RtlhbkAhg2%2Fdlx-000608%402x.jpg?alt=media&#x26;token=48067833-8f7f-4f3f-96b6-3d242ae6d626" alt=""><figcaption><p>Copy Your Token Somewhere Safe</p></figcaption></figure>

### Adding the MailerLite Token to the Integration

Input your API Key and click on "Connect to MailerLite."

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FxB6F8x0OJ93BhiqLHJJq%2Fdlx-000619%402x.jpg?alt=media&#x26;token=48b7c99c-e35e-4243-8a7b-b72c88b9b70d" alt=""><figcaption><p>Connect to MailerLite With Your API Token/Key</p></figcaption></figure>

### Selecting a Group

Groups are like tags, and if you have any, they'll be listed in this section.

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FzsBltJ4H9T9kTHN8kmWK%2Fdlx-000610%402x.jpg?alt=media&#x26;token=3fdad92c-5605-4056-a336-b0801c4e82ea" alt=""><figcaption><p>Select One or More Groups for Your Subscribers</p></figcaption></figure>

You can also add your own Groups (tags) and refresh them if they are updated elsewhere.

### Selecting a Field (Custom Fields)

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FDZ8IXHgTdAfEeJ518kLs%2Fdlx-000611%402x.jpg?alt=media&#x26;token=61c29145-ba9f-4a30-bcbc-4b71bfaa0882" alt=""><figcaption><p>MailerLite Fields are Shown in the Custom Fields Section</p></figcaption></figure>

With Custom Fields, you can map all of your MailerLite fields to the various comment fields available.

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FIxW51t6r2JUAgvr9o8nq%2Fdlx-000612%402x.jpg?alt=media&#x26;token=5efce8cd-282b-47d0-ac42-0e7ef614ffcf" alt=""><figcaption><p>Map to a Field or Enter a Custom Value</p></figcaption></figure>

You're also able to refresh your Fields and add in new ones. If you need to delete any fields, I recommend doing so in the MailerLite interface.

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FyvEIuFD1EEVtAJSYVhc7%2Fdlx-000613%402x.jpg?alt=media&#x26;token=7513105c-a35f-40ec-8408-29cba625db33" alt=""><figcaption><p>Refresh or Add New Custom Fields</p></figcaption></figure>

{% hint style="info" %}
All Fields created using this integration will have the type of 'text.'
{% endhint %}

### Set up Default Options

You can also set the sign-up label, whether to enable double-optin, and to have the signup checkbox enabled or disabled by default.

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FPzGYfayx4IEUkwRIAqXj%2Fdlx-000614%402x.jpg?alt=media&#x26;token=e51c1ce8-511b-4ebd-b01b-beddad07f3e6" alt=""><figcaption><p>Adjust the Form Defaults Shown on the Frontend</p></figcaption></figure>

### What the User Sees

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FSNh7wTnMERgX4Q95Dix1%2Fdlx-000560%402x.jpg?alt=media&#x26;token=3d7fd96d-9e9e-448f-9988-bc2ac1081af3" alt=""><figcaption><p>Subscribe Option on the Frontend</p></figcaption></figure>

The user will see a Subscribe checkbox; if they subscribe, they will be sent an email for an opt-in request.

### What You'll See

If the user subscribes, you will be able to view the subscriber and see all of the mapped custom fields and groups.

It'll also have an opt-in date should you choose to disable double opt-in.

<figure><img src="https://3862281288-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwIGhykuGfv38YJ8fAMWe%2Fuploads%2FRc2pxvEVEAbJLD2ZjHGC%2Fdlx-000615%402x.jpg?alt=media&#x26;token=9ad1d646-ffcd-42aa-88c6-c6513b835d2b" alt=""><figcaption><p>Viewing a Subscriber in MailerLite</p></figcaption></figure>
