HJ Zoho + Google Ads Integration
Fluent Forms → Zoho CRM (OAuth za EU/US/IN/AU), hvatanje GCLID/UTM, Google Ads konverzije (thank-you i onSubmit), logovi.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/milosmilenkovic007/fluent-forms-zoho-crm/archive/refs/heads/main.zipHJ Zoho + Google Ads Integration Plugin
Advanced WordPress plugin that integrates Fluent Forms with Zoho CRM and Google Ads conversion tracking.
🚀 Features
✅ Form-Specific Field Mapping
- Configure unique field mappings for each Fluent Form
- Visual interface for mapping form fields to Zoho CRM fields
- Support for standard, custom, and marketing fields
✅ Zoho CRM Integration
- OAuth 2.0 authentication for all Zoho data centers (EU, US, IN, AU)
- Automatic token refresh
- Duplicate detection and upsert functionality
- Comprehensive logging
✅ Google Ads Tracking
- GCLID, GBRAID, WBRAID tracking
- UTM parameters capture
- Conversion tracking on form submission and thank-you pages
- Automatic cookie management
✅ Modular Architecture
- Clean, maintainable code structure
- Separate classes for different functionality
- Auto-loading system
- Asset management
📁 File Structure
fluent-forms-zoho-crm/
├── fluent-forms-zoho-crm.php # Main plugin file
├── includes/ # Core functionality
│ ├── class-hj-zoho-ads-integration.php
│ ├── class-hj-zoho-crm.php
│ └── class-hj-zoho-tracking.php
├── admin/ # Admin interface
│ ├── class-hj-zoho-admin.php
│ └── views/
│ ├── settings-page.php
│ └── form-mapping-page.php
├── assets/ # CSS & JavaScript
│ ├── admin.css
│ └── admin.js
└── README.md # This file
🛠 Installation
- Upload the plugin folder to
/wp-content/plugins/ - Activate the plugin through the 'Plugins' menu in WordPress
- Go to
Settings > HJ Zoho + Adsto configure
⚙️ Configuration
1. Zoho CRM Setup
- Go to
Settings > HJ Zoho + Ads - Select your Zoho data center
- Enter Client ID, Client Secret, and Redirect URI
- Authorize with Zoho CRM
2. Form Field Mapping
- Go to
Settings > Zoho Form Mapping - Select a Fluent Form
- Map form fields to Zoho CRM fields
- Save the configuration
3. Google Ads (Optional)
- Enter Conversion ID and Label in main settings
- Configure thank-you page slug if needed
📋 Form-Specific Mapping
Each Fluent Form can have its own unique field mapping:
- Select Form: Choose which form to configure
- Map Fields: Connect form fields to Zoho CRM fields
- Save: Each form maintains separate mappings
Supported Field Types:
- Standard: First Name, Last Name, Email, Phone, Company, etc.
- Custom: Custom Zoho fields (e.g.,
My_Custom_Field__c) - Marketing: GCLID, UTM parameters, lead source tracking
🔄 Migration from Old Version
The plugin automatically migrates old field_map settings to the new form-specific structure. Your existing mappings will be applied to all configured forms.
📊 Logging & Debugging
- View recent activity in
Settings > HJ Zoho + Ads - Detailed logs for each form submission
- Success/Error status tracking
- Response details from Zoho API
🏗 Development
Adding New Field Types
- Edit
get_zoho_fields()inadmin/class-hj-zoho-admin.php - Add special handling in
process_submission()if needed
Extending Functionality
The modular architecture makes it easy to:
- Add new integrations
- Modify field processing logic
- Extend admin interface
- Add new tracking parameters
🐛 Troubleshooting
Common Issues:
"Class already declared" error:
- Deactivate the old plugin first
- Clear any caching plugins
Form not sending data:
- Check form ID is in allowed list
- Verify field mapping is configured
- Check Zoho authorization status
Token expired:
- Plugin automatically refreshes tokens
- Re-authorize if refresh fails
Debug Steps:
- Check plugin logs in admin
- Verify form field names match mapping
- Test Zoho API connection
- Check consent requirements if enabled
📝 Changelog
Version 1.1.0
- ✅ Modular architecture
- ✅ Form-specific field mapping
- ✅ Enhanced admin interface
- ✅ Improved error handling
- ✅ Better asset management
- ✅ Migration support
Version 1.0.x
- ✅ Basic Zoho CRM integration
- ✅ Google Ads tracking
- ✅ Single field mapping
🤝 Support
For support and customization requests, contact the plugin author.
Note: This plugin requires Fluent Forms to be installed and activated.