Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1.18 KB

07-mailchimp-autosubscribe.md

File metadata and controls

15 lines (13 loc) · 1.18 KB

This tutorial describes how to enable Mailchimp autosubscription feature. So that, when user subscribe on your website, they will be automatically added to subscription list on Mailchimp.

Setup

  1. Set the firebase config variables for Mailchimp configuration (you can find API data on your account)
      npx firebase functions:config:set mailchimp.dc="<DATA_CENTER_FOR_YOUR_ACCOUNT>" \
                                        mailchimp.listid="<LIST_ID_YOU_WANT_SUBSCRIBE_TO>" \
                                        mailchimp.apikey="<YOUR_API_KEY>"
  2. Deploy Firebase functions. You can find specific Mailchimp autosubscibe function here
      npx firebase deploy --only functions
  3. As per the currently existing Firebase subscription plans, the free plan does not support calls to external APIs from Firebase functions (which is being used for the Mailchimp integration). This means that you will need other subscription plan - we recommend Blaze (pay-as-you-go) subscription plan, which is the cheapest option that will allow you to make the integration