Ganomede's mailchimp registrar
1.8K
MailChimp microservice.
The mailchimp module will:
Before starting, you should create mailchimp list and add following merge fields:
G_USERID of type text to store Ganomede User ID of registred user;G_VIA of type text for app name user registred from;G_COUNTRY of type text for user-selected country;G_YOB of type number for user's year of birth.This can be done by going to "List / Settings / List fields and *|MERGE|* tags" section of created list:

The add the required fields:

Worker will infer other subscriber information like location's latitude and longitude, but it's always wortth to store original values too.
API_SECRET — non-empty string
LOG_LEVEL — log level, defaults to INFO
Newsletter config:
NEWSLETTER_NAME non-empty string with internal name of newsletter (used in usermeta to track user's subscription status)NEWSLETTER_ALLOW_FROM optional comma-seprated list; if specified, worker will only subscribe users from those appsMailchimp config
MAILCHIMP_LIST_ID non-empty string with Mailchimp List IDMAILCHIMP_CLIENT_ID optional non-empty string, defaults to ${pkg.name}/${pkg.version}; used as a username for Mailchimp API and user agent header to help you filter through logsMAILCHIMP_API_KEY non-empty string; Mailchimp API KeyMAILCHIMP_DATA_CENTER non-empty string; Mailchimp Data Centerganomede-events instance
EVENTS_PORT_8000_TCP_[ADDR|PORT|PROTOCOL] - IP|Port|Protocol to the events serviceEVENTS_CLIENT_ID non-empty string to [identify this worker](https://github.com/j3k0/ -anomede-events#new-clientclientid-options)EVENTS_CHANNEL non-empty string, defaults to "users/v1", channel to listen for -vents onEVENTS_PREFIX api prefix, defaults to "/events/v1"ganomede-usermeta instance (trakc subscription status)
USERMETA_PORT_8000_TCP_[ADDR|PORT|PROTOCOL] - IP|Port|Protocol to the usermeta serviceUSERMETA_PREFIX api prefix, defaults to "/usermeta/v1"StatsD for tracking stats (if host or port are missing, no stats will be sent)
STATSD_HOSTSTATSD_PORTSTATSD_PREFIX defaults to "mailchimp.registrations."This will track 4 integers:
events total number of received eventsfailure number of errorssuccess number of successesignored number of ignored eventsHTTP status server
HOST non-empty string, defaults to "0.0.0.0"PORT non-empty string, defaults to 8000ganomede-users will emit the given events to ganomede-events: see here for the full specification
Newsletter registration status will be stored as a usermeta in the internal metadata newsletters, with value "<NEWSLETTER_NAME>" (retrieve from environment variables). The newsletters metadata is a comma separated list of newsletter names.
The module will also provide a monitoring API similar to other module of ganomede:
Content type
Image
Digest
Size
107.8 MB
Last updated
about 9 years ago
docker pull ganomede/mailchimp-worker