Good morning,
I’m new to Mautic and have been tasked to run campaigns as reactions to sales in an online shop. After reading through the Mautic docs, I’ve settled on the following approach:
- Writing a custom Plugin which offers a CLI command, which periodically calls the online shop and fetches the newest orders.
- The plugin creates or updates the clients (I’m not using integration sync due to the peculiarities of the online shop API: I can only fetch customers and orders at the same time, afterwards the disappear.)
- The plugin adds a point to a contact for the order and adds the total amount of the order to the contacts attribution.
- The order itself is then added to Mautic in the plugin as a simulated form submission (Campaign form) with all the details stored. Some additional form fields are calculated in the plugin and stored in the form as well. Additionally the order summary is added as a note to the contact.
- The form submission itself triggers a campaign which will then send out mails depending on conditions on these special form fields. The campaign can be restarted by contacts in future orders.
Is that a sensible approach?
Thank you,
Christian