LeadMachine Connector allows you to easily capture leads from your WordPress website and automatically send them to your LeadMachine CRM account.
Features
- Easy setup – just enter your Company ID and API Key
- Native lead capture forms – customizable shortcode-based contact forms
- Newsletter signup forms – lightweight form with just name, email, and opt-in
- Analytics & tracking – automatic UTM, ad click IDs, and browser data collection
- Gravity Forms integration – connect any Gravity Form to LeadMachine
- Spam protection – built-in honeypot and time-based bot detection
- Responsive design – works on all devices
- AJAX form submission – smooth user experience without page reloads
- Automatic lead creation – leads instantly appear in your LeadMachine dashboard
- Tag support – automatically tag leads from different forms
- Customizable styling – colors, button text, success messages
- Blog post sync – sync posts to LeadMachine for automated email newsletters
- Conversion tracking – fires events for Google Analytics, Facebook Pixel, LinkedIn, TikTok, and more
Native Form Usage
- Install and activate the plugin
- Go to LeadMachine settings in your WordPress admin
- Enter your LeadMachine Company ID and API Key
- Customize your form settings
- Add the shortcode
[leadmachine_form]to any page or post
Gravity Forms Integration
Already using Gravity Forms? Connect your existing forms to LeadMachine:
- Go to LeadMachine settings > Gravity Forms tab
- Enable Gravity Forms integration
- Select a form and map fields to LeadMachine:
- First Name
- Last Name
- Phone
- Company
- Message
- Optionally add tags for each form
- Save settings – submissions now flow to LeadMachine automatically!
Shortcode Options
Customize individual forms using shortcode attributes:
[leadmachine_form title="Contact Us" description="We'd love to hear from you!" tags="Contact Form,Website"]
Available attributes:
title– Form title (overrides global setting)description– Form description textbutton_text– Submit button textbutton_color– Button background color (hex)tags– Comma-separated tags to apply to leadsbackground– Form background color (use “transparent” for none)title_color– Title text colordescription_color– Description text colorlabel_color– Form label text color
Examples:
Contact form: [leadmachine_form tags="Contact Form,High Priority"]
Newsletter Form
For simple newsletter signups, use the dedicated newsletter shortcode:
[leadmachine_newsletter]
This form only collects:
* Full Name
* Email Address
* Opt-in checkbox
Newsletter shortcode attributes:
title– Form title (default: “Subscribe to Our Newsletter”)description– Form description textbutton_text– Submit button text (default: “Subscribe”)tags– Comma-separated tags (default: “newsletter”)optin_text– Opt-in checkbox text (supports HTML for links)name_label– Label for name fieldemail_label– Label for email field- All color attributes from the contact form
Examples:
Newsletter signup: [leadmachine_newsletter title="Stay Updated" tags="newsletter,blog"]
Simple signup: [leadmachine_newsletter button_text="Sign Up" button_color="#22c55e"]
Analytics & Tracking
Both forms automatically collect browser and tracking data:
- UTM parameters – utm_source, utm_medium, utm_campaign, utm_term, utm_content
- Ad platform click IDs – Google Ads (gclid), Facebook (fbclid), LinkedIn, TikTok, Microsoft/Bing
- Browser data – device type, screen size, language, timezone
- Referrer – where the visitor came from
- Tracking cookies – Google Analytics, Facebook Pixel, HubSpot, LinkedIn
Form submissions also fire conversion events for:
* Google Analytics 4 (gtag.js)
* Google Analytics Universal (legacy)
* Facebook Pixel
* LinkedIn Insight Tag
* TikTok Pixel
* Microsoft/Bing UET
* Google Tag Manager dataLayer
Conversion & ROAS Tracking (Gravity Forms + Stripe)
Fire a Google Ads conversion — and optionally a GA4 purchase event carrying real revenue — when a form is completed. This works with the plugin’s native forms and with connected Gravity Forms, including Gravity Forms + Stripe checkout. Values are always dynamic; nothing is hard-coded.
Settings live under LeadMachine > Google Ads:
- Conversion ID — your Google Ads conversion ID, e.g.
AW-123456789(Google Ads > Goals > Conversions > Tag setup). The globalgtag.jstag for this account must be installed on your site. - Conversion Label — the conversion action’s label (the part after the slash in the tag). Optional.
- Send GA4 purchase event — also fire a GA4
purchaseevent with the transaction value + currency, for revenue / ROAS reporting. - Confirmation page — optional but recommended for payment forms. If set, the conversion fires ONLY when the visitor reaches a page whose URL contains this text (e.g.
payment-success), so abandoned checkouts are never counted. Leave blank to fire on the first page after submission.
How the value is provided (never hard-coded):
- If your Gravity Form collects payment with the Gravity Forms Stripe or PayPal add-on (payment inside the form), the amount + currency are read automatically from the entry.
- If checkout happens on a separate / hosted Stripe page, pass the amount on your confirmation redirect’s query string: add
value={total}¤cy=USD(use the merge-tag picker for{total}). The keys must be exactlyvalueandcurrency. The conversion still fires without a value, in which case Google Ads uses the conversion action’s own value.
Recommended setup for Gravity Forms + Stripe hosted checkout:
- Update the plugin, then open LeadMachine > Google Ads. Enter your Conversion ID and Label, tick Send GA4 purchase event, and set Confirmation page to your Stripe success/thank-you page (e.g.
payment-success). - In the Gravity Form’s Confirmation (Page Redirect), enable Pass Field Data via Query String and include
value={your total merge tag}¤cy=USD. - Ensure the global Google tag (
gtag.js) for your Ads account is installed site-wide — via your Google tag, Google Site Kit, or a header snippet.
On a completed purchase the plugin fires the Google Ads conversion and (if enabled) a GA4 purchase, both carrying the transaction value + currency, and only on the confirmation page — so abandoned checkouts are excluded.
Verify with Google Tag Assistant or GA4 DebugView on the confirmation page: you should see conversion and purchase events with value and currency populated.