5.3. MailChimp Connector

This extension has 3 actions:

  • Add a visitor into a defined Mailchimp list.

  • Remove a visitor from a defined Mailchimp list.

  • Unsubscribe a visitor from a defined Mailchimp list.

5.3.1. Getting started

  1. mailChimpConnector.apiKey=YOUR_APIKEY
  2. mailChimpConnector.url.subDomain=YOUR_SUB_DOMAIN (exemple: https://usX.admin.mailchimp.com/account/api/, the X is the SUB_DOMAIN)
  • Before starting configure the mapping between Apache Unomi profile properties and MailChimp member properties.The mapping can’t be use with multitued properties. You need to setup your MailChimp properties first in the MailChimp administration.
  1. Go to: lists/
  2. Select the triggered list
  3. Settings

Then in the cfg file mailChimpConnector.list.merge-fields.activate={Boolean} if you like to activate the mapping feature.

This is the property to configure for the mapping, the format is as shown. mailChimpConnector.list.merge-fields.mapping={Apache Unomi property ID}<⇒{MailChimp Tag name}

Note

there is a particular format for the address {Apache Unomi property ID}<⇒{MailChimp Tag name}<⇒{MailChimp tag sub entry}

MailChimp supported type are:

  • Date The format is (DD/MM/YYYY) or (MM/DD/YYYY)

  • Birthday The format is (DD/MM) or (MM/DD)

  • Website or Text They are text

  • Number The number will be parse into a Integer

  • Phone The North American format is not supported, use international

  • Address

Note

Street, City, Country and Zip are mandatory properties, otherwise the address property will be skipped.

  1. address<=>ADDRESS<=>addr1,
  2. city<=>ADDRESS<=>city,
  3. zipCode<=>ADDRESS<=>zip,
  4. countryName<=>ADDRESS<=>country
  • Deploy into Apache Unomi using the following commands from the Apache Karaf shell:
  1. feature:repo-add mvn:org.apache.unomi/unomi-mailchimp-connector-karaf-kar/${project.version}/xml/features
  2. feature:install unomi-mailchimp-connector-karaf-kar