oro / crm-mail-chimp
OroCRM MailChimp integration
Requires
- drewm/mailchimp-api: ^2.5
- oro/crm: ~3.1.1
- oro/marketing: ~3.1.1
- 3.1.0
- 3.0.x-dev
- 3.0.0
- 3.0.0-rc
- 3.0.0-beta
- 2.6.x-dev
- 2.6.10
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.x-dev
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.x-dev
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.x-dev
- 2.3.9
- 2.3.8
- 2.3.7
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.x-dev
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.x-dev
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.x-dev
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-rc.1
- 1.6.x-dev
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.x-dev
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.x-dev
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.x-dev
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.x-dev
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.x-dev
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.x-dev
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-12-11 11:09:48 UTC
README
This Bundle provides integration with MailChimp for OroCRM. It allows to link Marketing List to MailChimp service and receive MailChimp Email Campaign statistics back in OroCRM.
Setting Up the Connection
First of all, a new Integration with type "MailChimp" must be created.
Go to the "System -> Integrations" and click "Create Integration" button.
- Type: must be set to MailChimp
- Name: must be filled with meaningful integration name
- API Key: is a MailChimp API Key from your MailChimp profile page. About API Keys
- Check Connection: appear only after the API Key has been filled. Click the button to check connection to the MailChimp API with the given API Key.
- Default Owner: Select the owner of the integration. All entities imported from the integration will be assigned to the selected user.
Connecting Marketing List to MailChimp
After integration is created and Enabled Marketing Lists may be connected to MailChimp.
Only Marketing Lists with Email fields can be connected.
If the Marketing list is suitable for the connection, "Connect To MailChimp" button will appear on Marketing List view page. One Marketing List may be connected only to one MailChimp integration. OroCRM Marketing Lists are represented in MailChimp as Static Segments of some List.
Lists creation is not allowed by the MailChimp API, so at least one List must be present to load the members to MailChimp. Create a New List
When "Connect to MailChimp" button is clicked, the following form will emerge:
- MailChimp Segment Name: is a name of MailChimp Static Segment that will be created in MailChimp Subscribers List
- MailChimp Integration: is a MailChimp integration selector
- MailChimp Subscribers List: is a MailChimp Subscribers List where Static Segment of members will be created
After the connection has been saved, a new Static Segment will be scheduled for creation along with the members synchronization job.
Job Queue Daemon has to be running.
Marketing Lists connected to MailChimp must contain the Email field. Connection settings of the lists are added as a MailChimp action on their view pages. Available options are "Connection Settings", "Disconnect" and "Synchronize". Synchronize option is available only for lists in the Synced status.
MailChimp Campaign Creation
Marketing List members may be used to send MailChimp campaigns. OroCRM Marketing list is mapped to Static Segment of MailChimp List. Campaign statistics are collected in OroCRM ONLY when Campaign is sent to a Static Segment connected to OroCRM. More about MailChimp Campaigns
Import Synchronization Logic
Import is performed with oro:cron:integration:sync cron command.
- Lists: All MailChimp lists are imported with Merge Vars information
- Static Segments: Only segment connected with Marketing Lists are synchronized
- Campaigns: Only Sent campaigns sent to a Static Segment that has connection to OroCRM Marketing List are imported.
A new Email Campaign will be created in OroCRM for a MailChimp Campaign and synchronized during the following imports.
- Members: All members for the Lists connected to OroCRM Static Segment are imported. Export API used with Since filter
- Member Activities: Member activities are loaded for Campaigns that were imported to OroCRM. Export API used with Since filter
Each member activity is mapped to OroCRM Marketing List Item and Email Campaign Statics by Email. So more than one Marketing List Item and Email Campaign Statics record may be create if there are several entities with the same Email in the Marketing List. Activities 'open', click', 'bounce', 'unsub', 'abuse' increment corresponding counters of Email Campaign Statics. The 'sent' activity will increment 'contacted times' counter and set 'last contacted at' variable of Marketing List Item.
Export Logic
Export is performed with oro:cron:mailchimp:export cron command.
The following steps are performed in the course of the Marketing List members synchronization with MailChimp: First, all the Marketing List members are checked for subscription to the MailChimp List. Members not subscribed are scheduled for subscription. After that, all the Marketing List members absent in the Static Segment are scheduled for a mass add to the segment. All the members present in the Static Segment but absent in the Marketing List are scheduled for removal from the Static Segment.
During segment export we have 4 steps
- handle_add_state: Will add new member to MailChimp
- handle_remove_state: Will remove members from Segment at MailChimp
- handle_unsubscribe_state: Will unsubscribe members from List at MailChimp
- handle_delete_state: Will delete members from List at MailChimp
Extended Merge Vars
Extended Merge Vars is a functionality to add MailChimp Merge Vars. Merge Vars creates from the definition of the Segment of the MarketingList. Merge Var is equal to column in the Segment definition. Then Merge Vars could be used to personalize MailChimp email templates. During export next steps executes:
- creates Extended Merge Vars from the Segment definition
- creates MailChimp Merge Vars and export its values to every MailChimp subscriber in the list
Predefined cart item Merge Vars adds if Segment built on Shopping Cart entity. For now it limits to 3 cart items.
Known Issues
Email Campaign Statistics and MailChimp Statistics may differ. Email Campaign Statistics is calculated based on Export API data which at the moment contains only clicks and opens. MailChimp Statistics contains summary statistics for MailChimp Email Campaign.