WooCommerce Integration Guide

Complete guide to integrate MyFormCapture with WooCommerce

Setup time: 5-10 minutes
Difficulty: Easy
Compatible versions: WooCommerce 3.0+

Integrate MyFormCapture with your WooCommerce-powered WordPress site to capture leads and provide instant callback requests for your e-commerce business.

Prerequisites

  • A MyFormCapture account - Sign up here
  • WordPress site with WooCommerce plugin installed and activated
  • Admin access to your WordPress dashboard
  • Your MyFormCapture integration code (found in your dashboard)

Integration Methods

WordPress Theme Editor (Recommended)

5 minutes Easy

The recommended method using WordPress's built-in theme editor. Works with all themes and doesn't require coding knowledge.

1

Access Theme Editor

Navigate to your WordPress theme editor to add the MyFormCapture code.
  1. Log in to your WordPress admin dashboard
  2. Go to Appearance → Theme Editor
  3. Select your active theme from the dropdown
  4. Click on header.php in the file list
Important Note
Always backup your theme before making changes. WordPress automatically creates backups, but manual backups are recommended.
2

Add Integration Code

Insert the MyFormCapture code in the header.php file before the closing tag.
  1. Find the </head> tag in header.php
  2. Paste your MyFormCapture integration code just before this closing tag
  3. Click Update File
  4. Test your WooCommerce site to verify the widget appears
<!-- MyFormCapture Integration -->
<script>
(function() {
  var script = document.createElement('script');
  script.src = 'https://widget.callmebackbutton.com/widget.js';
  script.setAttribute('data-account', 'YOUR_ACCOUNT_ID');
  script.setAttribute('data-woocommerce', 'true');
  document.head.appendChild(script);
})();
</script>
</head>
Important Note
The data-woocommerce attribute helps optimize the widget for e-commerce functionality.
3

Configure for E-commerce

Set up MyFormCapture to capture product-specific leads and cart abandonment.
  1. In your MyFormCapture dashboard, enable 'E-commerce mode'
  2. Set up product page triggers in your MyFormCapture settings
  3. Configure cart abandonment timing (recommended: 30-60 seconds)
  4. Test on product pages and during checkout process
Important Note
E-commerce mode provides additional context about products customers are viewing when they request callbacks.

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

Need Help?

Our support team is here to help you with your integration.

Contact Support