Mailchimp Integration - YourMembers/yourmembers GitHub Wiki
This guide is designed for use with Your Members - Mail Manager version 1.6 or higher.
<iframe width="480" height="390" src="http://www.youtube.com/embed/V1-iv-tcrbk" frameborder="0" allowfullscreen></iframe> To use the MailChimp integration you must have the following installed on your machine:- Your Members 1.9.2.4 or higher
- Your Members - Mail Manager 1.6.0 or higher
- MailChimp Gateway version 2.0
If you do not see MailChimp in your top box, look in the Your Members - Mail Manager shop, it will be available to purchase at $0 and you can simply install it by hitting the install button and following the automated instructions or downloading the zip.
Once activated Mail Manager will prompt for your API key (this can be attained from MailChimp site, via a link on the Mail Manager page and choose a pre created list (on the Mail Chimp side to join). Once inserted you are taken to the settings page to select a template, if you have created a custom template in Mail Chimp this will be selected but you can select a different one. note: you must select a base template Once selected hit save and this will begin syncing.During the syncing phase the following information is passed to Mail Chimp:
- Every user in the WordPress database fname, lname, email
- All Your Members custom fields are set up as merge vars and users with custom field data, this data is populated
- Every account type is created as a static segment, and any users with that account type is assigned into that segment
- Every subscription is created as a static segment, and any users with that subscription is assigned into that segment
- A web hook is added, to monitor new subscriptions and unsubscriptions automatically
WARNING - This process can take a very long time if you have large user base (2000 or more subscribers)
Once this has been done, new users will automatically be assigned to the various static segments, this happens automatically and you do not need to rerun the sync when a user is created however you do have to run the sync when you create a new custom field, account type or subscription. However the sync is run once a day, should you forget.
Once the sync is completed the setup process is completed and you can now make use of Your Members data in Mail Chimp or you can continue to use Your Members - Mail Manager interface.
You can use MailChimp campaigns and auto-responder as you would do normally.- Create your new campaign or Autoresponder
- After selecting the list choose "send to segment"
- Select from the left hand drop down list "Static Segment"
- Select the account type or subscription you wish to use
- Create your new campaign or Autoresponder
- After selecting the list choose "send to segment"
- Select the custom field from the drop down list
- Custom WordPress welcome email
- Invoicing
- Subscription Reminders
- Select Broadcast in Mail Manager
- Select a recipient group
- Select a subject line
- The various sections of your selected template will become available and need populating
- Mail Chimp specific - Authenticate and Time Warp features can be enabled see Mail Chimp site documentation for more details
- Hit Schedule
- Shown Preview option to send test mail or schedule
- Schedule mail to go by a future time (note if set to past will be sent straight away) or send now
- Clicking View Emails will allow access to stats
- Double Optin - by default set to no as by default all users will be WordPress users and therefore under gone double optin.
- Send Welcome Letter - by default set to no as users would have received WordPress welcome letter.
- Run the list in the browser as normal - this may not always work and the page may hang
- Run the list via the command line - Email us for the script, you will need ssh access and PHP CLI installed