Magento Integration Guide
Complete guide to integrate MyFormConnect with Magento
Integrate MyFormConnect with your Magento store to capture leads from product pages, checkout abandonment, and customer inquiries. Magento powers over 250,000 e-commerce stores worldwide.
Prerequisites
- A MyFormConnect account - Sign up here
- Your MyFormConnect integration code from your dashboard
- Magento admin access
- Magento 2.x installation
- Basic understanding of Magento theming
- FTP/SFTP access (for advanced methods)
Integration Methods
Theme Integration
Add MyFormConnect to your Magento theme for comprehensive e-commerce lead capture. This provides the best integration with Magento's features.
Locate Theme Files
- Navigate to
app/design/frontend/[Vendor]/[Theme]/ - Or use
app/design/frontend/Magento/luma/for default theme - Create
Magento_Theme/layout/directory if it doesn't exist - Create
default_head_blocks.xmlfile
Important Note
Create Layout XML
- Create or edit
Magento_Theme/layout/default_head_blocks.xml - Add MyFormConnect block to the head section
- Save the file
- Deploy static content if needed
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<script src="https://widget.callmebackbutton.com/widget.js" />
<script>
require(['jquery'], function($) {
$(document).ready(function() {
if (typeof CallMeBackWidget !== 'undefined') {
CallMeBackWidget.init({
account: 'YOUR_ACCOUNT_ID',
platform: 'magento',
ecommerce: true
});
} else {
var script = document.createElement('script');
script.src = 'https://widget.callmebackbutton.com/widget.js';
script.setAttribute('data-account', 'YOUR_ACCOUNT_ID');
script.setAttribute('data-magento', 'true');
script.setAttribute('data-ecommerce', 'true');
document.head.appendChild(script);
}
});
});
</script>
</head>
</page>
Important Note
Clear Cache and Deploy
- Run:
php bin/magento cache:clean - Run:
php bin/magento cache:flush - Run:
php bin/magento setup:static-content:deploy - Test your store frontend
Important Note
Related Integrations
References & Official Documentation
Next Steps
Configure MyFormConnect
- Set up your timezone
- Configure lead notifications
- Set up advanced spam detection
- Add team members to your account
Advanced Features
- Use our custom form templates
- Try AI Insights for Leads
- Integrate with your CRM
- Set up automated workflows