LifterLMS Advanced Quizzes: What the Add-on Adds and When It Pays Off
A clear comparison of core LifterLMS quizzes and the Advanced Quizzes add-on: the extra question types, the question bank, manual grading and its…
Read articleOnce students are in Mailchimp you can welcome them, nudge them when they stall, and sell them the next course. The LifterLMS Mailchimp integration gets them there automatically, sorted by what they enrolled in, so a student of your beginner course does not get the advanced launch email meant for graduates.
This guide covers the official LifterLMS MailChimp add-on step by step, how to structure your Mailchimp audience, and how to add Mailchimp tags, which the add-on documentation does not cover, with WP Fusion, Zapier or a small custom plugin.
For the wider choice of email and CRM tools, see our roundup of LifterLMS integrations.
| Option | What it syncs | Choose it when |
|---|---|---|
| LifterLMS MailChimp add-on | New users to a default audience; enrolled students to an audience and interest group per course or membership; consent | You want the official, supported route and groups are enough |
| WP Fusion | Tags on enrollment, completion, quiz results and purchases; tag-based enrollment | You need tags for many events, or may change email platform later |
| Zapier or similar | Whatever the zap does with LifterLMS triggers and Mailchimp actions | A few simple rules, no plugins |
| Custom plugin | Exactly what you code, such as tags added and removed with enrollment | You want tags without another subscription, under version control |
The add-on and WP Fusion are paid WordPress plugins; Zapier and Mailchimp have their own plans. Check each vendor's pricing page for current costs.
The add-on is installed like any LifterLMS add-on, from your LifterLMS account. Its getting started guide lists the current requirements. Then:
The add-on documentation notes that the API key can be defined in wp-config.php instead of the database. Do that on production, so the key is not exposed in database exports or staging copies.
Each course and membership gets a MAILCHIMP tab in its settings with two options:
According to the add-on documentation, new and existing students are added when they enroll. Test the enrollment routes you actually use, such as purchases, free enrollments, admin enrollments and a membership's automatic course enrollment, before relying on them. Students who enrolled before you set the add-on up are not synced until they enroll in something new, so plan a one-off import if you are adding Mailchimp to an established site.
The most expensive mistake is a separate Mailchimp audience for every course. Mailchimp bills on the total contacts across all your audiences, so a student in three course audiences can count three times, and each audience has to be managed separately. Mailchimp's own audience best practices recommend one audience organised with tags, groups or segments.
A structure that works for most course businesses:
Contacts can change their own interest groups from their Mailchimp profile. Tags are internal labels that only you see. Enrollment fits either; completion, cancellation and purchase history fit tags better.
The add-on can show a consent checkbox with your message on registration, checkout and enrollment forms. Students who do not tick it are not subscribed to marketing. With Confirmation Emails on, students who consent still have to click a confirmation link from Mailchimp before they receive campaigns.
Students can also manage their Mailchimp subscription from the LifterLMS student dashboard, which saves you support tickets.
Keep a clear line between marketing and course operation. Lesson reminders, receipts and password emails come from LifterLMS and do not depend on Mailchimp consent. Our LifterLMS GDPR and privacy guide covers consent records and data requests in more depth.
The add-on documentation describes audiences and interest groups, not tags, and does not describe what happens when a student is unenrolled. If your automations rely on tags, add them another way.
WP Fusion supports Mailchimp and has a deep LifterLMS integration. According to its LifterLMS documentation, you can apply tags when a course is begun or completed, when a lesson is completed, on membership enrollment, on access plan purchase, and on quiz attempts and passes. It can also work in reverse, enrolling users when a tag is applied with "Link with Tag". It is the most complete option if email automation is central to your business. See our WP Fusion guide.
The LifterLMS app on Zapier provides triggers such as a new course enrollment, and Mailchimp's Zapier app can add subscribers and tags. Zaps check for new data on a schedule, so expect a delay. Our guide to LifterLMS Zapier automations covers the setup and limits.
If students are already being added to your audience, by the add-on or a signup form, a few lines of code can add a tag on enrollment and switch it off when access ends. This uses the LifterLMS enrollment hooks, Mailchimp's add or remove member tags endpoint, and Action Scheduler, which ships with LifterLMS, so the API call never slows down checkout.
<?php
/**
* Plugin Name: LLMSX Mailchimp Tags
* Requires: define LLMSX_MC_KEY and LLMSX_MC_LIST in wp-config.php.
*/
add_action( 'llms_user_enrolled_in_course', 'llmsx_mc_tag_on', 10, 2 );
add_action( 'llms_user_added_to_membership_level', 'llmsx_mc_tag_on', 10, 2 );
function llmsx_mc_tag_on( $user_id, $post_id ) {
as_enqueue_async_action( 'llmsx_mc_tag', array( $user_id, $post_id, 'active' ), 'llmsx' );
}
add_action( 'llms_user_removed_from_course', 'llmsx_mc_tag_off', 10, 2 );
add_action( 'llms_user_removed_from_membership', 'llmsx_mc_tag_off', 10, 2 );
function llmsx_mc_tag_off( $user_id, $post_id ) {
as_enqueue_async_action( 'llmsx_mc_tag', array( $user_id, $post_id, 'inactive' ), 'llmsx' );
}
add_action( 'llmsx_mc_tag', 'llmsx_mc_send_tag', 10, 3 );
function llmsx_mc_send_tag( $user_id, $post_id, $status ) {
$user = get_userdata( $user_id );
if ( ! $user || ! defined( 'LLMSX_MC_KEY' ) || ! defined( 'LLMSX_MC_LIST' ) ) {
return;
}
// Use a custom tag name if set on the course or membership.
$tag = get_post_meta( $post_id, '_llmsx_mc_tag', true );
if ( ! $tag ) {
$tag = 'LMS: ' . get_the_title( $post_id );
}
$parts = explode( '-', LLMSX_MC_KEY );
$dc = end( $parts ); // Data centre, e.g. "us21".
$url = sprintf(
'https://%s.api.mailchimp.com/3.0/lists/%s/members/%s/tags',
$dc,
LLMSX_MC_LIST,
md5( strtolower( $user->user_email ) )
);
$response = wp_remote_post( $url, array(
'timeout' => 15,
'headers' => array(
'Authorization' => 'Basic ' . base64_encode( 'llmsx:' . LLMSX_MC_KEY ),
'Content-Type' => 'application/json',
),
'body' => wp_json_encode( array(
'tags' => array( array( 'name' => $tag, 'status' => $status ) ),
) ),
) );
$code = wp_remote_retrieve_response_code( $response );
if ( 204 !== $code ) {
// Throwing marks the action as failed in Action Scheduler's log.
throw new Exception( sprintf( 'Mailchimp tag failed for user %d: HTTP %s', $user_id, $code ) );
}
}
Mailchimp answers a successful tag change with 204 No Content. If the person is not in the audience yet, the call fails and the failure is visible under LifterLMS > Status > Scheduled Actions, which is where to look first when tags are missing. Tags are keyed by the email address, so a student who changes their email in LifterLMS needs it updated in Mailchimp too.
Not out of the box. The official integration is a paid add-on. Free routes are a Mailchimp signup form on your site, which knows nothing about enrollments, or custom code using the hooks shown above.
Yes. Set a New Enrollment Group on each course or membership's MAILCHIMP tab.
Its documentation covers audiences and interest groups. For tags, use WP Fusion, Zapier or custom code.
Not with the MailChimp add-on. WP Fusion's Link with Tag feature, or Zapier calling the LifterLMS enrollment action, can do it.
Sketch your audience structure first: one audience, a course interest group, and a short list of tags you will actually use in automations. Then set up the add-on on staging, enroll a test student with a fresh email address, and confirm what arrives in Mailchimp, including after you cancel their access.
If you need tags for completions and quiz results, a reliable two-way sync, or a migration from another email platform, our LifterLMS integrations service designs and builds it. Tell us how you use Mailchimp today and we will suggest the simplest setup.
A clear comparison of core LifterLMS quizzes and the Advanced Quizzes add-on: the extra question types, the question bank, manual grading and its…
Read article
Set up course-restricted forums with the built-in LifterLMS bbPress integration: enable it, attach forums to courses or memberships, show them on…
Read article
How the LifterLMS Private Areas add-on works, how to set up private posts and automations for coaching clients, how to sell coaching as a premium…
Read articleSkip the trial and error. Get specialist LifterLMS help and ship faster.