This comprehensive guide provides start to finish instructions for users who are attempting to install and configure the connector for the first time. It focuses on the most important things you need to know, and do, in order to get going.
This guide doesn't cover advanced features. Full and comprehensive guidance can be found at Engagement Cloud for Magento.
|Pre-Installation Health Check|
|API & Transactional Credentials|
|Mapping Data Fields|
|Easy Email Capture|
|Order Sync Settings|
|Catalog Sync Settings|
|Abandoned Cart - Email Series|
Pre-Installation Health Check
The Engagement Cloud for Magento connector is compatible with both Community and Enterprise platforms of Magento.
- For Community we're compatible with 1.6.1 +
- For Enterprise we're compatible with 1.11.1 +
While every site is different, the connector could potentially come into conflict with other extensions. For example, abandon cart extensions and other SMTP tools could also possibly come into conflict with the connector, and this makes it important to state these during the installation process.
- Requires full access (0777) to the var/export directory or full access to the CRON user running on the server.
The connector has several cron tasks attached with the install to ensure the connector functions correctly. Below is a list of current tasks and their timings:
- ddg_automation_abandonedcarts - 5 minute intervals
- ddg_automation_campaign - 5 minute intervals
- ddg_automation_catalog_sync -15 minute intervals
- ddg_automation_cleaner – 1st of every month
- ddg_automation_customer_subscriber_guest_sync - 15 minute intervals
- ddg_automation_importer – 5 minute intervals
- ddg_automation_order_and_quote_sync - 15 minute intervals
- ddg_automation_reviews_and_wishlist - 15 minute intervals
- ddg_automation_status -15 minute intervals
The cron heartbeat should be running every 5 minutes to action the required tasks.
Have Multiple Websites?
The connector supports multiple websites. If there are multiple sites within the same Magento instance then we recommend you link one site to one Engagement Cloud account. If you are configuring multiple sites to multiple Engagement Cloud accounts, you will need to follow the entire process for each separate Engagement Cloud account you have.
The installation of the Magento 1 connector can only be installed via FTP. It is recommended to install the connector on a staging or development site prior to production.
- Download the files to the connector from GitHub located at https://github.com/dotmailer/dotmailer-magento-extension.
- Download it as a ZIP and unzip the file.
- Drop/move all of the source folder content inside the unzipped file into the corresponding destination folders. Destination folders can be found at https://raw.githubusercontent.com/dotmailer/dotmailer-magento-extension/testing/modman.
- Clear cache or disable the cache before installing the extension.
- Log out for the ACL to update and log in again.
Create API User
To enable the connector to communicate with your Engagement Cloud account and allow data synchronisation, you need to enter valid Engagement Cloud API credentials. API user credentials are made up of a username and password, and are required to authenticate each operation/method call that's made and to make sure you're connected to the correct account.
Click on the person-and-cog icon in the bottom left corner to produce the settings menu and select Access.
A settings menu will appear; select the API users tab and click on New user.
Create Transactional User
You can make use of Engagement Cloud's transactional email service to send, manage and track all of your transactional emails. The transactional service acts as a delivery mechanism for all the transactional emails such as order and shipping confirmations. If you are looking to use Engagement Cloud's easy editor to create and manage transactional emails for Magento please review the Transactional email templates article.
To use the transactional service a transactional user must be created. This process is similar to creating an API user. Select Access from the settings menu that appears when clicking the person-and-cog icon in the bottom left corner of the screen.
A settings menu will appear; select the Transactional email users tab and then click on New user to enter the details.
Enter API Credentials in Magento
Return to your Magento admin panel and select the API Credentials option from the Marketing Automation menu item.
Set 'Enabled' to Yes and then enter the credentials (username and password) of the API user just created
When finished click Save Config. A confirmation is message is displayed notifying you the credentials are valid.
Enter Transactional Credentials in Magento
From Magento select Transactional Emails from the dotmailer menu. The menu can be accessed under System >> Configuration.
Select Yes to enable the feature then enter the hostname, username and password.
- r1-smtp.dotdigital.com if you have an account belonging to region 1 (Europe)
- r2-smtp.dotdigital.com if you have an account belonging to region 2 (North America)
- r3-smtp.dotdigital.com if you have an account belonging to region 3 (Asia)
Select an open port. Your options are 25,587 and 2525.
Click Save when finished.
Custom From Address
Remember to setup the accounts default Custom From Address. This is done from Transactional Email> Settings> From addresses. More information about Custom From Addresses can be found here.
In addition to the basic contact information, the connector provides you the ability to map over 40 key retail information that you store on contacts from your Magento website to your Engagement Cloud account.
To map the fields automatically choose the Developer option from the dotmailer menu.
Under the Sync Settings sections choose Run Now next to the 'Automap Data Fields' option. After a few moments, the page is reloaded with a success message.
The connector synchronises contacts to three different address books for three Magento contact types:
- Customers - Registered customers of your Magento site that have a customer account.
- Subscribers - Contacts who have opted into newsletter subscription on your site.
- Guests - Email addresses from an order placed via guest checkout. They are neither a customer or a subscriber.
Before synchronisation begins, you need to create these address books so they can be selected and mapped to from within the connector.
Address books can be created directly within the connector or within your Engagement Cloud account. To create address books from within the connector select the Sync Settings from the dotmailer menu.
Select the Create Address Book section towards the bottom of the page. Provide the address book a name and select the visibility. Selecting 'public' means contacts will be able to join or unsubscribe from it. When finished, click Create New Address Book.
Repeat the steps above until all address books are created.
Under the Address Book Mapping section choose the appropriate address books from the drop-down menu to map your customers, subscribers and guests to.
When finished with your mapping, select Save Config in the top right.
Site tracking enriches your data and your understanding of your contacts' engagement with your site, whilst ROI tracking gives you a greater appreciation of your campaigns' ROI conversion rates.
Site Tracking is managed from Configuration.
From the Tracking section select Yes for 'ROI Tracking Enabled' and/or 'Page Tracking Enabled'.
When finished, click Save Config.
Easy email capture allows you to capture your site's user's email addresses when they haven't fully completed your checkout process or newsletter sign up process.
Easy Email Capture is managed from Configuration.
From the Abandoned Carts section select Yes for “Easy Email Capture (Checkout)” and/or “Easy Email Capture (Newsletter)”.
When finished, click Save Config.
You have the option to only import and synchronise orders of a certain status, rather than all of them. For example, you might only be interested in sending campaigns or running segments based on orders that have been fulfilled. In this case, you might only want to import orders in a “Complete” status.
The order settings is managed from Configuration.
From the Transactional Data section choose the status types to be imported from the "Import With Status" list.
When finished, click Save Config.
In addition to our standard default order data fields, you have the option to synchronize custom order attributes. This list comprises all of the order attributes that are available within the Magento system, allowing you to segment and send content based upon these too.
Under the Transactional Data section choose the attributes to be included in the import from the "Order Custom Attributes" list.
When finished, click Save Config.
Changes made to custom order attributes are reflected in new imports run after the adjustment has been made. To include these in previous imports the order insight collection must be deleted and the data re-imported
The connector provides the facility to map and synchronise your product catalog against your Engagement Cloud account. With your product catalog synchronised, you will be able to insert products into campaigns with ease by utilising the 'Products' building block or setup Product Recommendations.
You can choose to sync products of a certain visibility and/or product type rather than all products. This allows you to keep your catalog organised by excluding products that are no longer relevant on your site.
The catalog settings is managed from Configuration.
From the 'Catalog Sync Settings' section choose the Store Value, Product Visibility and Product Types you want to sync.
When finished, click Save.
Broken Product Images?
Try setting the 'Store Value' to Store. This uses the store URL for the image path instead of the admin URL.
After address books have been mapped and your order settings configured you can enable the sync. Return to the Sync Settings page by selecting Sync Settings from the menu.
Under the Sync section select Yes to all sync types you would like to enable. Most enable Customer, Subscriber, Guest, Order and Catalog.
Within 15 minutes contacts and insight data should begin to be batched. Details for advanced synchronisation options such as Quote, Whistlist and Review can be found at Engagement Cloud for Magento
When enabling order synchronisatoin for the first time there is an hour delay prior to importing the order information. This delay is in place to prevent order imports from failing due to missing contacts.
There are several ways to check that data syncing from Magento into Engagement Cloud is taking place.
Contact Sync Report
Contacts that are successfully batch to be imported should be marked as imported with a green tick. This is accessed under Marketing Automation > Reports > Contacts Sync
Batched contacts/orders should exist in this report. Once the importer cron has run an import should be marked with a status of 'Importing‘. Shortly after data should appear in Engagement Cloud. This is accessed under Marketing Automation > Reports > Importer Status.
Confirm Engagement Cloud (ddg) cron jobs are running. Cron is a vital part of making sure your data syncing happens correctly. We recommend installing the AOE Scheduler to give you a real-time view of the tasks running throughout your site, as well as giving you the ability to manage and configure your cron jobs.
Confirm API credentials are active and valid. You can view the status of the API credentials on the dashboard. The dashboard can be accessed under Marketing Automation >> Dashboard >> Connector Status.
Confirm at least one contact sync is turned on.
Requires full access (0777) to the var/export directory or full access to the CRON user running on the server.
Abandoned cart emails are an important tool and key sales recovery strategy for ecommerce businesses. Research by marketing industry experts has suggested that around 70% of online consumers abandon carts. That means about one in three carts gets checked out first time.
Abandoned carts are setup and configured directly within the interface of the connector and can be sent to customers and guests. Customers and guests can receive up to three different emails that are scheduled for different time intervals. If your Magento instance has more then once website, you can configure different emails and settings per website.
Using external dynamic content (EDC), you can include the contents of their cart within the body of the emails you send.
Abandoned carts uses a series of trigger campaigns. To create and build trigger campaigns login to your Engagement Cloud account. From the main page choose the Automation menu item and then choose Trigger Campaign Content.
Access the email content and drag the External Dynamic Content building block into the location where you would like the cart content to be displayed.
Return to Magento and navigate to Dynamic Content.
Copy the Abandoned Cart URL and return to the campaign in Engagement Cloud.
Select the External Dynamic Content building block. Paste the Abandoned Cart URL previously copied to the 'Address' field then click Apply.
When done editing the campaign content click Save.
New to Automation?
After the campaigns have been created access the Abandoned Carts menu item from Magento.
The page is broken down into two sections for Customers and Guests. Go through each section and enable the amount of abandoned cart emails you require. Choose the time delay and Campaign to Send from each section.
When finished click the Save Config button.
If you need to setup abandoned carts for separate websites select the website name from the site drop-down and then navigate to the Abandoned Cart menu item.
You are able to check the status of abandoned cart emails by access the Campaign Sends report. This can be access from the Marketing Automation menu item and then clicking 'Reports'
By reviewing this report you are able to tell whether abandoned cart emails are being queued for sending, whether they are being sent to Engagement Cloud and whether anything is failing. You can sort and filter this report in a number of ways to find the information you're looking for.
External Dynamic Content
Confirm the external dynamic content link is correct that you’re using for pulling abandoned carts information into your campaign content. To check this select Dynamic Content from the Engagement Cloud menu in Magento.
Confirm ‘ddg_automation_abandonedcarts’ and ‘ddg_automation_campaign’ cron jobs are running. Without both of these running abandoned cart emails will not be batched or sent.
Disable extensions you might have used previously to send abandoned cart emails.