Divi’s Email Optin module adds people to your email list, but it can’t tag them, so you can’t tell which form a subscriber came from. Divi Doctor adds a Tags field to each Email Optin module and applies those tags after every successful signup: in Mailchimp with one feature, and in ActiveCampaign or AWeber with another. This page covers setup, how tags are applied, and how to check the results.
Before you start
Tags use the Mailchimp account you’ve already connected in Divi. If you haven’t, open an Email Optin module, go to Content → Email Account, set Service Provider to Mailchimp, add your account and choose a List. Divi Doctor reads the API key Divi saved for that account; you don’t enter it again.
Switch tags on
- Go to Divi Doctor → Features.
- Under Email Optin module, find the Mailchimp tags per form card and click Enable.
The card’s checks show whether Divi 5’s Email Optin module was found and how many Mailchimp accounts are connected in Divi. If Mailchimp accounts in Divi shows 0, connect one first.
Add tags to a form
- Open the page in the Visual Builder and open the Email Optin module’s settings.
- In the Content tab, open Mailchimp Tags. It’s right after Email Account. While ActiveCampaign and AWeber tags are on too, the group is called Tags and the field Mailchimp Tags.
- Type your tags into Tags, separated by commas, for example
Webinar, Lead Magnet. - Save the page, and clear any page cache.
Each Email Optin module has its own tags, so you can tag one form “Webinar” and another “Ebook”. If the module’s provider isn’t Mailchimp, the group shows Tags are applied only when the Email Account provider is Mailchimp. instead of the field. While ActiveCampaign and AWeber tags are on too, the notice reads Tags are applied only when the Email Account provider is Mailchimp, ActiveCampaign or AWeber.
How the field is read
- Commas separate tags. Spaces around each tag are removed, and so are empty entries.
- A tag that repeats, even in different capitals, is only sent once.
- Up to 50 tags per form, and up to 100 characters per tag. HTML is removed.
- The field has one value for all screen sizes.
How tags are applied
Divi still handles the signup exactly as before: its checks, spam protection and the subscribe call to Mailchimp. Divi Doctor waits for Divi’s answer. Only when Divi reports that the signup succeeded does Divi Doctor ask Mailchimp to add the form’s tags to that contact.
- New contacts, contacts waiting for double opt-in confirmation, and people already on the list all get the tags.
- Tags that don’t exist in your Mailchimp audience yet are created.
- Mailchimp automations that start when a tag is added still run.
- Tags are only added, never removed. If you change a form’s tags later, contacts keep the tags they already have.
- If Divi shows an error, for example for an invalid address, no tags are sent.
The visitor sees Divi’s usual success message. On servers with PHP-FPM or LiteSpeed, Divi’s answer reaches the visitor first and the Mailchimp call happens after, with one retry if Mailchimp is busy or hasn’t finished creating the contact. On other servers the visitor waits for the call, so it uses a 5-second timeout and no retry.
The tags never reach the visitor’s browser. Divi Doctor stores them on the server for each form, so visitors can’t change them. It also checks that the submitted account and list are the ones the form was shown with.
Check that it works
- Open the page in a private window, so you’re logged out.
- Sign up with a test address.
- In Mailchimp, open the contact. The form’s tags are on it.
- Back in Divi Doctor → Features, open the Mailchimp tags per form card. Last tag call shows Applied with the tags, and the call is listed under Recent tag calls.
Forms with tags
A form is recorded the first time its page is viewed after you saved its tags. The Forms with tags panel on the card lists each recorded form with its Tags, Audience (list) ID, Account, the page it was First seen on and when it was Last seen. Up to 200 forms are kept; if a form drops off, it’s recorded again the next time its page is viewed.
Recent tag calls
The Recent tag calls panel keeps the last 30 calls to Mailchimp, newest first. Clear log empties it.
| Column | What it shows |
|---|---|
| When | How long ago the call was made. |
| Result | Applied or Failed, with Mailchimp’s HTTP status code. |
| Contact | The subscriber’s address, shortened for privacy, for example ja***@example.com. |
| Tags | The tags that were sent. |
| Audience (list) ID | The ID of the Mailchimp list the tags were applied in. |
| Details | Tags applied., or the reason for a failure. Mailchimp’s own error text is shown with the address hidden. |
Two failures come from your setup rather than from Mailchimp. No Mailchimp API key saved in Divi for account “…” means Divi has no key for the account the form uses. The saved Mailchimp API key has no data-center suffix (e.g. -us21). means the saved key is incomplete. Reconnect the account in the Email Optin module’s Email Account settings.
Limits
- Divi 5 Email Optin modules only, not Divi 4 or legacy shortcode modules.
- Mailchimp only. ActiveCampaign and AWeber have their own feature, below. Other email providers aren’t affected.
- Set the tags on the module itself, not in a preset.
- If the page is served from a full-page cache built before you added the tags, the form isn’t recorded and signups aren’t tagged. Purge the cache once.
- Turning the feature off, or deactivating Divi Doctor, brings back Divi’s normal behavior straight away. The tags stay saved in your modules and are ignored.
Note: After a Divi update, sign up once with a test address and check Recent tag calls. The feature hooks into Divi’s signup flow, so this is the quickest way to confirm it still works.
ActiveCampaign and AWeber tags
The ActiveCampaign and AWeber tags per form feature does the same for Email Optin forms whose Email Account uses ActiveCampaign or AWeber. It uses the account Divi already saved, so you don’t enter a key again. You can use it on its own or next to the Mailchimp feature.
Switch it on
- Go to Divi Doctor → Features.
- Under Email Optin module, find the ActiveCampaign and AWeber tags per form card and click Enable.
The card’s checks show how many accounts Divi has saved in ActiveCampaign accounts in Divi and AWeber accounts in Divi. If the one you use shows 0, connect it first in an Email Optin module, under Content → Email Account.
Add tags to a form
- Open the settings of an Email Optin module that uses ActiveCampaign or AWeber.
- In the Content tab, open Tags, right after Email Account.
- Type your tags into ActiveCampaign / AWeber Tags, separated by commas, for example
Webinar, Lead Magnet. - Save the page, and clear any page cache.
The field is read like the Mailchimp field: see How the field is read. It shows only while the module’s provider is ActiveCampaign or AWeber; with both tag features on, each module shows the field for its own provider.
How tags are applied
Divi subscribes the visitor exactly as before. What happens to the tags depends on the provider:
- ActiveCampaign: only when Divi reports that the signup succeeded does Divi Doctor add the tags, with the API key and API URL Divi saved for the account. New contacts and contacts already on the list both get them.
- AWeber: the tags are added to Divi’s own request that creates the subscriber, so AWeber receives them in the same call. AWeber refuses signups from addresses already on the list, as it does with Divi alone, so only new subscribers get tags.
- Tags that don’t exist yet are created.
- Tags are only added, never removed.
- If Divi shows an error, no tags are sent.
On servers with PHP-FPM or LiteSpeed, the visitor gets Divi’s answer first and the ActiveCampaign call happens after, with one retry if ActiveCampaign is busy or hasn’t finished creating the contact. On other servers the visitor waits for the call, so it uses a 5-second timeout and no retry.
As with Mailchimp, the tags are stored on the server for each form and never reach the visitor’s browser, and the submitted account and list must be the ones the form was shown with. API keys are never logged.
Forms with tags and Recent tag calls
The card has its own two panels, like the Mailchimp card. Forms with tags lists each recorded form with its Provider, Tags, List ID, Account, the page it was First seen on and when it was Last seen. A form is recorded the first time its page is viewed after you saved its tags, and up to 200 forms are kept.
Recent tag calls keeps the last 30 calls, newest first, with the columns When, Provider, Result (Applied or Failed, with the HTTP status code when there is one), Contact (shortened, for example ja***@example.com), Tags, List ID and Details. Clear log empties it, and Last tag call in the card’s checks shows the newest one.
| Details | What it means |
|---|---|
| Tags applied., or ActiveCampaign’s own confirmation | ActiveCampaign added the tags. |
| Tags sent with the new subscriber. | AWeber received the tags when it created the subscriber. |
| No ActiveCampaign API key or API URL saved in Divi for account “…”. | Divi has no complete credentials for the account the form uses. Reconnect it in the module’s Email Account settings. |
| The ActiveCampaign API URL saved in Divi is not an https address. | Reconnect the account with its https:// API URL. |
| ActiveCampaign did not confirm the tags. | ActiveCampaign answered without confirming. When it gives a reason, its own text is shown instead. |
| Divi reported success but sent no create-subscriber request to AWeber, so no tags were added. | Divi didn’t create a new AWeber subscriber for this signup, so there was no request to add the tags to. |
Check that it works
- Add tags to a module that uses ActiveCampaign or AWeber, save the page and clear any page cache.
- Open the page in a private window and sign up with a new test address.
- In ActiveCampaign or AWeber, open the contact. The form’s tags are on it.
- On the card, Recent tag calls lists the call as Applied.
Limits
- Divi 5 Email Optin modules only.
- Set the tags on the module itself, not in a preset.
- AWeber: only new subscribers get tags.
- If the page is served from a full-page cache built before you added the tags, the form isn’t recorded and signups aren’t tagged. Purge the cache once.
- Turning the feature off, or deactivating Divi Doctor, brings back Divi’s normal behavior straight away. The tags stay saved in your modules and are ignored.
If tags aren’t showing up, see Features and bug fixes in the FAQ. To use Klaviyo with the Email Optin module, see Klaviyo for the Email Optin module.
Questions
Does tagging make the signup slower?
On servers with PHP-FPM or LiteSpeed, Divi’s answer reaches the visitor first and the Mailchimp call happens after. On other servers the visitor waits for the call, so it uses a 5-second timeout and no retry.