承接 oro/crm-mail-chimp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

oro/crm-mail-chimp

Composer 安装命令:

composer require oro/crm-mail-chimp

包简介

OroCRM MailChimp integration

README 文档

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.

oro/crm-mail-chimp 适用场景与选型建议

oro/crm-mail-chimp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 96 次下载、GitHub Stars 达 9, 最近一次更新时间为 2021 年 04 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 oro/crm-mail-chimp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 oro/crm-mail-chimp 我们能提供哪些服务?
定制开发 / 二次开发

基于 oro/crm-mail-chimp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 96
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 45
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2021-04-19