If your eCommerce is developed in Magento, you can easily integrate it with Connectif and start collecting data from your customers to create your campaigns.
In this article, you will learn how to install and configure the Connectif module for Magento 2.
Difficulty: Advanced (requires technical knowledge).
When to use it?: When opening your account in Connectif.
STEP 1. Download and installation of the Magento 2 module
Depending on the version of Magento your eCommerce uses, you must follow different steps:
- If you have a version earlier than Magento 2.2, review section A of this step.
- If you have a version later than Magento 2.2, review section B of this step.
A. Versions earlier than Magento 2.2
A.1. Download the module
1. Access your Connectif account.
2. Go to Integrations in the left-side menu.
3. In the ERPs and CRMs section, find Magento and click Edit.
4. In the Configuration section, click Download Magento 2 Module to download the file “connectif.zip” to your computer.
A.2. Copy the Connectif folder to the Magento installation
5. Copy the "Connectif" folder and all its content into the "/app/code/" folder, located in the root of the Magento 2 installation.
A.3. Install the module
6. Access the Magento 2 admin panel and go to "System > Web Setup Wizard".
7. In Module Manager, find the Connectif_Integration module and select Activate.
8. Follow the steps prompted during the installation of the Connectif module and click Next:
- Readiness Check: this step checks for PHP version, crons, dependencies, and extensions.
- Backup: this step creates a backup of the eCommerce before the module installation.
- Enable module: this step activates the module.
B. Versions later than Magento 2.2
B.1. Download the module
9. Access your Connectif account.
10. Go to Integrations in the left-side menu.
11. In the ERPs and CRMs section, find Magento and click Edit.
12. In the Configuration section, click Download Magento 2 Module to download the file “connectif.zip” to your computer.
B.2. Copy the Connectif folder to the Magento installation
13. Log into your Magento 2.x store via an SSH connection.
14. After a successful SSH login, use the command line (shell) to navigate to the root directory of Magento where Magento 2 is installed.
15. Upload the module (as a Zip or tar.gz) to the root directory of the Magento 2 installation.
16. Extract the file into a temporary directory.
17. The location to copy the extracted module should be “app/code/Connectif/”. Create this folder with the following command:
mkdir –p app/code/Connectif/
18. Copy the content of the extracted folder into the newly created folder:
cp -R Connectif/* app/code/Connectif/
19. Run the Magento 2 installation command from the root:
php bin/magento setup:upgrade
20. Compile the installed module with:
php bin/magento setup:di:compile
21. Clear the cache with:
php bin/magento cache:flush
STEP 2. Activate the module
22. Go to "Stores > Configuration > " and locate the Connectif configuration.
23. In the Basic Configuration section, select the option Yes in the Activate field to enable the Client ID and Secret Key fields.
24. Access your Connectif account and, in the "Integrations > Magento" section, copy the Client ID and the Secret Key.
25. Return to Magento 2 and paste them into the corresponding fields.
26. Click "Save Config" to save the changes.
Frequently Asked Questions
Do you have questions about the Connectif module in Magento? Here you will find useful information:
1. What is each section of the Connectif module in Magento for?
The Connectif module in Magento has several sections, each serving different purposes:
- Basic Configuration (1): this section configures the basic aspects of your Connectif account in Magento, documented in this article, allowing you to start your strategy.
- Banners (2): this section is deprecated, as banner format content is configured directly from Connectif.
- Public URLs (3): this section is used to check the activation URLs for ServiceWorker and subscription notifications.
These URLs are generated and communicated to Connectif when the module is installed in Magento.
-
Advanced Configuration (4): this section establishes certain behaviors in the integration with Connectif:
- Print only mandatory fields on cart tags?: this option specifies if the Connectif script will only collect mandatory cart fields (Product ID, name, price, and URL). This option can improve cart tag performance in Magento.
- Use product variants on cart and purchases?: this option determines whether Connectif collects the default product or the specific variant when receiving cart product information.
- Product image ID: this option specifies the image size that Connectif will collect.
- Notify purchases offline: this option determines if the eCommerce will notify Connectif of offline purchases via API without a web context.
- Order Status: this option specifies the status that purchases need to be in to be registered via API (offline notifications) in Connectif.
2. How to activate offline purchase notifications (via API)?
1. In your Magento account, go to "Stores > Configuration", click on Connectif and Settings.
2. Disable the Connectif module from "Basic Configuration > Activate", selecting the No option.
3. Click on Save Config.
4. Go to "Advanced Configuration > Notify purchases offline", and select the Yes option.
5. In "Order Status", choose the status that purchases must be in to be registered offline in Connectif.
6. Re-enable the Connectif module from "Basic Configuration > Activate", selecting the Yes option.
7. Click Save Config.
3. How to configure Connectif in a multi-language Magento store?
Magento allows for three levels of entities within an account:
- Website: typically only one, corresponding to the domain.
- Store: the different stores, for example, by language.
- Store view: other details for stores, such as the same language but with a different currency.
The Connectif module can be configured at any of these levels according to eCommerce needs, but some aspects must be considered:
- Magento configuration types, as configuration in "Default" mode applies to all Magento levels.
-
To send data from different Magento levels to the same Connectif store, the same Client ID and Secret Key must be used in the configuration.
- It is recommended, except in very complex cases, to activate the default configuration at the time of integration, to configure all levels equally.
If you have multiple languages and/or currencies to configure, it is common to make adjustments at the Store View level separately.
4. How to recover abandoned carts with the Cart Recovery URL
(This section explains how the Cart Recovery URL works to retrieve items associated with a specific cart).
Through integration with Magento, Connectif provides a Cart Recovery URL, a link that can be used to recover cart-related items and used in workflows and content.
To obtain the cart recovery URL through a workflow, use the "Get Last Cart" and "On Cart Abandonment" nodes, then map it to the content variables to be displayed or sent.
- Learn how this URL works in different CMS and how to use it in this article.
Keep learning!
To take full advantage of your Connectif account, we recommend continuing with the following articles:
-
Onboarding, to gain familiarity with our interface.
-
Initial Workflows, to implement your first strategies in the account.
-
Integrations with External Systems, to integrate with Facebook, forms, and webhooks on your website.
-
API Integrations, to manage events like purchase records or contact registrations.