Magento Integration Guide
Complete guide to integrate MyFormCapture with Magento
Integrate MyFormCapture 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 MyFormCapture account - Sign up here
- Your MyFormCapture 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 MyFormCapture 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.xml
file
Important Note
Create Layout XML
- Create or edit
Magento_Theme/layout/default_head_blocks.xml
- Add MyFormCapture 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 MyFormCapture
- Set up your business hours and timezone
- Configure callback phone numbers
- Set up email notifications
- Add team members to your account
Advanced Features
- Set up custom form templates
- Configure lead scoring rules
- Integrate with your CRM
- Set up automated workflows