Mailchimp
Mailchimp is an online email marketing solution to manage contacts, send emails and track results.
-
Log into mailchimp and obtain an API key for your account. Go to
Account -> Extras -> API keys -> Create a key
-
In MailChimp, find your Audience Id. Go to
Audience dashboard -> Manage Audience -> Settings -> Audience name and campaign defaults
, and find the unique Audience ID number for the list you want to subscribe your enrolling students to. -
Add a new Mailchimp integration in onCourse.
-
Click the 'Add' button below the mailchimp icon. The name of the integration must be 'Enrolment'. Insert your API key and Audience ID from MailChimp, then save and close this window.
Once the integration has been defined you will need to enable a mailchimp script to automate data flowing between the systems. Scripts can be found by going to the Automation window. Sample scripts are provided to enrol students on enrolment and to update marketing material settings in onCourse when they unsubscribe in mailchimp.
There are five mailchimp scripts for use with the mailchimp integration available in onCourse:
mailchimp subscribe
for onCourse mailing list subscription: This type of integration triggers when you manually attach a Mailing List tag, with the same name as the integration, to an onCourse contact. You can create multiple mailing list tag groups in onCourse that integrate with multiple mailchimp lists by first creating that tag in the Mailing List tag group, and then creating an integration with the same name. TIP: it’s best if the mailchimp audience, mailing list tag and integration all share the same name, so you can more easily follow the movement of data.
If your onCourse plan allows script editing, there are some additional lines that you can add to this script to both force Mailchimp to ignore its opt-in email setting and not send one, as well as adding a Mailchimp tag of the same tag name to the contact in Mailchimp.
To disable email opt-in, add the following line within the script block:
optIn false
To tag a contact on subscription, add the following line:
tags record.taggedContact.tags
mailchimp unsubscribe
onCourse mailing list unsubscription: This type of integration triggers when you manually remove a mailing list tag from a contact and will set the contact as Unsubscribed from the audience in Mailchimp. This script should be enabled whenever the script 'mailchimp subscribe' is enabled.
mailchimp subscribe on enrolment
This type of integration triggers when a contact enrols via onCourse or the web. You can only have one of these types of integrations to subscribe all enrolling students to a single mailchimp list. Your onCourse integration must be named "Enrolment" for this to work.
mailchimp pull subscribe
This script will pull unsubscriber information back from mailchimp into onCourse, and based on email address, will mark the contact’s record as 'email marketing unavailable'.
mailchimp subscribe on attribute changing
Allows you to subscribe or unsubscribe a user in mailchimp whenever their 'email marketing' checkbox is changed.
Updated 6 months ago