Skip to content

Latest commit

 

History

History
104 lines (78 loc) · 3.27 KB

POSTINSTALL.md

File metadata and controls

104 lines (78 loc) · 3.27 KB

See it in action

You can test out this extension right away!

Add/Remove Users

  1. Go to your Authentication dashboard in the Firebase console.

  2. Click Add User to add a test user.

  3. In a few seconds, go to your Mailchimp audience page, you'll see the test user's email appear.

Member Tags

  1. Go to your Firestore Database in the Firebase console.

Assuming the following params:

Member Tags Watch Path: registrations
Member Tags Watch Config:
{
  "memberTags": ["jobTitle", "domainKnowledge"],
  "subscriberEmail": "emailAddress"
}
  1. Click Start collection and provide the following name "registrations"

  2. Click Add document and populate the document:

{
  emailAddress: "{MAILCHIMP_SUBSCRIBER_EMAIL_ADDRESS}",
  jobTitle: "Marketing Manager"
}
  1. Confirm the user data has been updated in the "Tags" portion of your Mailchimp account: https://admin.mailchimp.com/lists/members/view?id={YOUR_MAILCHIMP_ACCOUNT_ID}

Merge Fields

  1. Go to your Firestore Database in the Firebase console.

Assuming the following params:

Merge Fields Watch Path: registrations
Merge Fields Watch Config:
{
  "mergeFields": {
    "firstName": "FNAME",
    "lastName": "LNAME",
    "phoneNumber": "PHONE"
  },
  "subscriberEmail": "emailAddress"
}
  1. Click Start collection and provide the following name "registrations"

  2. Click Add document and populate the document:

{
  emailAddress: "{MAILCHIMP_SUBSCRIBER_EMAIL_ADDRESS}",
  firstName: "Janet",
  lastName: "Jones",
  phoneNumber: "000-111-2222"
}
  1. Confirm the user data has been updated in the "Profile Information" portion of your Mailchimp account: https://admin.mailchimp.com/lists/members/view?id={YOUR_MAILCHIMP_ACCOUNT_ID}

Member Events

  1. Go to your Firestore Database in the Firebase console.

Assuming the following params:

Member Events Watch Path: registrations
Member Events Watch Config:
{
  "memberEvents": ["activity"],
  "subscriberEmail": "emailAddress"
}
  1. Click Start collection and provide the following name "registrations"

  2. Click Add document and populate the document:

{
  emailAddress: "{MAILCHIMP_SUBSCRIBER_EMAIL_ADDRESS}",
  activity: ['training_registration', 'welcome_email', 'reminder_email']
}
  1. Click Add document and populate the document:

  2. Confirm the event has been registered in the "Activity Feed" portion of your Mailchimp account: https://admin.mailchimp.com/lists/members/view?id={YOUR_MAILCHIMP_ACCOUNT_ID}

Using the extension

Whenever a new user is added your app, this extension adds the user's email address to your specified Mailchimp audience.

Also, if the user deletes their user account for your app, this extension removes the user from the Mailchimp audience.

Monitoring

As a best practice, you can monitor the activity of your installed extension, including checks on its health, usage, and logs.