It is hard to imagine a modern ecommerce business without some sort of automation. In fact, all ecommerce businesses could benefit from the extensive range of marketing automation tools that take care of mundane tasks, perform a significant amount of daily routine work automatically, and leave you free to concentrate on important matters from which the best is Mautic Magento.
Mautic – an open source marketing automation tool is one of the widely used solutions for managing campaigns, social networks, email marketing, report generation – all routine tasks for Magento store that could be automated to enhance the productivity of the store management. The good thing about Mautic is that instead of altering the structure of the business, it can be entirely customized to fit the requirements of your business.
Since Mautic is open source, it could be easily integrated with other similar platforms such as Magento. This article covers the integration process in detail. For the purpose of this article, I will use a Cloudways managed server running a custom PHP application. If you aren’t a Cloudways customer yet, I strongly recommend you to sign up for a free trial account.
Instal Mautic on Your Server
Login to your Cloudways account and connect to the server via SSH. Once the SSH connection is up, navigate to the root directory of the custom PHP application.
The Installation Process
The process of installing Mautic has several simple steps. Please follow the commands in the order in CLI:
git clone https://github.com/mautic/mautic.git
rsync -a mautic/* ./
rm -Rf mautic
Now, reset file permission for your application using Cloudways platform. Once done, carry on with the next set of commands:
At this point, the CLI portion of the installation process is over.
Next, visit Mautic in a browser (your application URL) and follow the easy installation steps that will ask for your DB credentials and a new admin account.
Note: During the installation, if you get an error about the website is currently offline, please reset your file permission once again.
Integrating Mautic With Magento
After successful installation of Mautic on your server, it’s time to integrate it with your Magento store. For this, I will use Magento + Mautic Integration Extension by MageDirect.
The basic functionality of this extension is to export your Magento customers to Mautic so that you can load your customers’ data and perform all operations available in Mautic.
First, download and then upload the Mautic Integration Module to your Magento store. Next, clear/flush the cache of your Magento store. The module offers simple settings for connecting Magento with Mautic using an API and share customer data between the two platforms.
Create Mautic API Credentials
First of all, your Magento store has to be authorized with Mautic API. Mautic supports both OAuth1 and OAuth2. In this article, I will focus on OAuth1. To create API credentials, login to your Mautic Administration.
Navigate to Mautic Configuration from the right side menu.
Click API Settings, Enable it, and then tap Apply.
Now, again from the right side menu, go to the API Credentials.
Tap the New button located in the top-right corner.
Select OAuth 1.0a in the Authorization Protocol drop-down, enter the API Name mainly for the reference, and hit the Apply button.
Authorize Magento With Mautic API
From the Magento admin panel, navigate to System >> Configuration, and from the left side under MAGEDIRECT, click Mautic Integration to access the module’s settings.
Here, you will need to specify the Mautic URL and API Credentials. After that, you will be able to export customers data to Mautic. Enter the following information as described:
Enable Extension: Set it to Yes to enable the extension.
OAuth Version: Select OAuth 1.
Client ID: Copy Consumer Key from Mautic API Credentials and paste it here.
Client Secret: Copy Consumer Secret from Mautic API Credentials and paste it here.
Mautic URL: Enter the Base URL of Mautic. For example, this (http://phpstack-91647-370059.cloudwaysapps.com/index.php) was my Base URL of Mautic which I have entered here.
After entering all the information, tap the Save Config button. Once the configuration has been saved, click the Authorize API button. A popup will ask for the Mautic login credentials.
Just authorize the Magento with Mautic, and at the end, you will get the following page, indicating that Mautic has been integrated successfully with your Magento store.
Last but not the least, click the Export button under Contacts Integration section to sync your Magento customers’ data with Mautic.
Note: Each time you update Mautic’s source after the initial setup/installation, you will need to clear the cache by running php app/console cache:clear command on the application’s root.
The Final Words
Automating marketing campaigns for Magento stores is essential for streamlining the time management for store owners. Using Mautic, store owners could delegate repetitive tasks to Mautic because it is a reliable and cost-effective solution for automating tedious tasks such as emails, advertisements, social media, etc.
I would recommend all Magento store owners that they should look into integrating Mautic with Magento stores and automate your customer driven tasks. This will free up time for you to focus on improving user experience and the business goals.
Boost Your Magento Store Performance by 5x Times & Maximize Your Sales
Our fastest Magento hosting can help you in growing your business revenue by 500%
Fayyaz, a passionate Motorbike tourist, works as a Team Lead — Magento Community at Cloudways - A Managed Magento Hosting Platform. His objective is to learn & share about PHP & Magento Development in Community. You can contact him at email@example.com