From a sign-up on the site to a group in the tool
The path of consent in a newsletter integration. Each step is a different part of your code or of the tool API.
- Form and store consent in the form or at checkout sign-up
- Your system consent check, group, attributes POST of the contact
- Tool API MailerLite or Brevo group or list
- List the contact in a group or on a list
- When it works
- The contact is visible in the group and can receive a campaign
- When it fails
- An API error comes back with a code and description and goes to the log
What each tool API handles
How a contact is signed up and unsubscribed in each tool's API. Each row is a separate route for a sign-up or an unsubscribe.
| Tool | Sign-up through the API | Unsubscribe |
|---|---|---|
| MailerLite | POST /api/subscribers on connect.mailerlite.com. An existing subscriber is updated, and groups go in the groups array. | Status unsubscribed in the same request, or a PUT to /api/subscribers/{id}. |
| Brevo | POST /v3/contacts on api.brevo.com with the api-key header, lists in listIds, attributes as a map of values. | The emailBlacklisted and smsBlacklisted flags set to true. |
A tool form or an integration in your code
A simple sign-up form can be set up in the tool itself. When the sign-up follows rules from orders, we write it in your code. The choice depends on how many rules your store has and who will maintain the sign-up after the launch.
A form and automations in the tool panel, with no code on your side.
A sign-up through the MailerLite or Brevo API, called from your store or system, with a log.
- 01 A form in the tool
- 02 An integration in your code
When
- You want only a sign-up on the site, with no store logic.
- You have no segments that depend on orders.
- A sign-up should match an order, e.g. after buying in a given category.
- Consents and unsubscribes should be visible in your panel.
A form in the tool
When
- You want only a sign-up on the site, with no store logic.
- You have no segments that depend on orders.
A form and automations in the tool panel, with no code on your side.
An integration in your code
When
- A sign-up should match an order, e.g. after buying in a given category.
- Consents and unsubscribes should be visible in your panel.
A sign-up through the MailerLite or Brevo API, called from your store or system, with a log.
04
Before the first contact goes through the API
Items on the tool and store side that block the launch if someone forgets them.
- 01
Account and keys
An API key from the tool account
Brevo requires the api-key header, and MailerLite needs a token from the account. The key stays on your side and never goes into the site code.
- 02
Groups or lists that exist in the account
MailerLite accepts only the ids of existing groups, and Brevo takes lists by their ids. We create a new group before the launch.
- 03
Attributes defined in Brevo
Brevo ignores values whose attribute does not exist in the account or has another type. Attribute names are written in capital letters, as the documentation says.
- 04
The double opt-in flow agreed before the launch
We agree with you how double opt-in confirmation works and test it on a separate list.
- 05
Consent recorded with the contact
We record where and when the consent came from, so it can be shown if anyone asks.
- 06
Unsubscribe works both ways
An unsubscribe from your system changes the status in the tool, and a change made in the tool goes back to your panel log.
- 07
A list of form fields
We agree which fields go to the tool and which stay only in your system. The less data leaves, the less there is to describe in the privacy policy.
- 08
A place for the privacy policy
The sign-up form links to the privacy policy, and consent is not pre-ticked. We check that before the launch, not after it.
Common questions about the newsletter integration
Click a question to see the answer.
How much does the newsletter integration cost?
How long does it take?
Who builds the newsletter integration?
Can someone be unsubscribed through the API?
Does double opt-in work automatically?
Will segments built from orders work?
Will you connect a store to Mailchimp or GetResponse?
Will the newsletter integration code be mine?
How do you check the sign-up before the launch?
What happens when a sign-up fails?
Can the customer see their consent in their account?
Do I pay for the tool separately?
Sources
The API descriptions come from the official vendor documentation.
Describe your project.
A free quote comes back within an hour during working hours.