Leadtrace Formbuilder help

Everything you need to set up and run the plugin. Kept short, sorted by topic. Questions not answered here: kontakt@carstenseeberger.com.

1. Overview

Leadtrace is a WordPress plugin for lead forms with tracking, CRM integration and privacy features. Forms are built in WordPress, in the plugin's own editor, not in the CRM.

  • Requirements: WordPress 6.5 or newer, PHP 8.1 or newer. Tested up to WordPress 7.1 and PHP 8.5.
  • Languages: German and English. German websites (de_DE, de_AT, de_CH, formal and informal) see German, all others English. This applies to the admin, forms, error messages, emails and templates.
  • License: one year, per website. €99 / €79 / €59 net per website (websites 1 to 4 / 5 to 19 / from 20). 30-day trial, once per customer; website and payment method are checked. Subscription, invoices and cancellation via the Stripe customer portal, in the plugin under “Manage subscription and invoices”.
  • Updates: arrive as usual under Plugins for as long as the license is valid. Updates are signed (Ed25519); the plugin only installs releases with a valid signature.
  • Without a license: no forms and no submissions.
  • License expired: forms stay visible, submissions are saved. HubSpot, Brevo, webhooks, tracking and email receive nothing until you renew. “Resend” then delivers them.
  • Development and staging: localhost, .local, .test and the subdomains staging., stage., dev. and test. need no license and don't count.
  • License server unreachable: fully functional for 30 days, with a warning in the dashboard after 24 hours.

2. Getting started

  1. Install and activate. The setup wizard opens automatically and is available anytime via “Setup” in the dashboard. Steps: license, email sending (SMTP detection, test email), cookie tool, tracking, CRM, first form. Every step can be skipped.
  2. Create a form: from a template picked from a list, or by importing from another form plugin. Templates include contact, newsletter, application, practice enquiry (sensitive data), callback, quote, appointment, support with file attachment, download, event registration and feedback, plus four shop templates: withdrawal under § 356a BGB, complaint, back-in-stock notification and dealer enquiry.
  3. Embed it:
    • Shortcode [lfh_form id="12"], for example in the Gutenberg shortcode block. Works with any theme.
    • PHP: <?php echo lfh_render_form( 12 ); ?>
    • Breakdance: “Leadtrace Form” element in the Forms category. Elementor: “Leadtrace Form” widget in the Leadtrace category. Both with a live preview in the editor.
    • Full-screen page without menu and footer at /formular/<id>-<name>/ (noindex), for example for ads or emails.
  4. Email sending: notifications go through wp_mail(). An SMTP plugin is recommended (FluentSMTP, WP Mail SMTP, Post SMTP, Brevo). Under Settings → Email you see the status and can send a test email.

3. Building forms

  • Field types: text, email, phone (with country code, stored in international format), number, date, textarea, select (dropdown), single choice (radio), multiple choice, checkbox, consent, file upload, hidden field, field group (repeatable), heading, paragraph, HTML.
  • Multi-step: steps with progress bar or step indicator, optional summary, custom next and back labels.
  • One question at a time (Typeform style): one question per screen, Enter and keyboard, auto-advance on single choice, welcome screen, progress. With several steps there is one screen per step. Works embedded and on the full-screen page.
  • Conditional logic: show or hide fields, skip steps. Operators: equals, not equals, contains, does not contain, empty, not empty, greater and less than (also with decimal numbers), one of, none of. Server and browser evaluate identically. Hidden fields are neither validated nor sent.
  • Validation: required fields, lengths, number ranges, patterns, free-mail block for email fields (Gmail, GMX, Web.de and others) with a custom message, domain block and allow lists.
  • Prefill: fill fields via URL parameters. Hidden fields from UTM, click IDs or cookies.
  • Style: presets (Clean, Soft, Outline, Minimal), colours, sizes, corner radius, button style, width, alignment and corners, frame (line or shadow), alignment on the page. Layout “Stacked” or “In one row”. Labels above or as placeholders. Custom CSS for the form only. Copy style: copy colours, preset, sizes, buttons, frame, custom CSS and label position from another form with one click (“Apply”, then “Undo” if needed); layout, width and texts stay as they are. No custom fonts, the form inherits the theme's font. Live preview for desktop and mobile.
  • After submitting: confirmation text (HTML, with placeholders) or redirect to a thank-you page. On your own thank-you page you can show input, such as “Thanks, Anna!”, with [lfh_value field="vorname" fallback="du"]. The value arrives via a signed cookie for one hour, never via the URL, and a page cache never shows another visitor's name. Not for sensitive data and applications. Individual fields can deliberately be passed to the target page as URL parameters, for example to Calendly; the editor warns about this, sensitive fields and files never.
  • Lead magnet (“Enable lead magnet”): file download after submitting, as a button in the confirmation and/or a link by email. The file sits in a private folder, the link is signed and expires. The download is counted and reported as the form_download event.
  • A/B tests: forms against each other, visitors randomly see one variant, without cookies. A winner is declared after at least 14 days, from 100 views per variant, 20 submissions and 95% confidence; with several variants the calculation is stricter. Only submissions that came through the test count. The test page warns when the split of views doesn't match the weights. “Apply” ends the test and works anytime. Test a small change: change the button text, headings and paragraphs right inside the test; Leadtrace creates the variant as a copy and publishes it.

4. Emails

  • Notifications: any number per form, with To (fixed addresses, comma-separated, or {admin_email}), Reply-To, subject and content (HTML). You insert input via building blocks: click them or drag them into place. A preview shows the text with field names. This also applies to the confirmation, variants, lead magnet email and confirmation text.
  • Sending rules: every notification can have conditions (“Only send if …”), for example Department = Sales, then to sales@. Unmet conditions appear in the log as “skipped”.
  • Confirmation to the sender: one email to the submission's email field, at most 3 per address per day as abuse protection. Variants depending on the answer: a different subject and text when conditions match. The first matching variant wins.
  • Resend: several notifications can be triggered again individually or all together. Individually within a submission the condition doesn't apply, in the bulk action it does. The confirmation to the sender is never resent.
  • Weekly report (Settings → Email, off by default): every Monday an email with enquiries compared with the previous week, views, completion rate, lead quality, delivery errors, spam, the strongest forms and the main sources. Recipients freely selectable, empty = administrator address. Totals only, no visitor data. “Send report now” to have a look.
  • When sending fails: a single failed email within 24 hours creates an error notice in the dashboard and the WordPress backend, with the count and an explained error message. Submissions are saved. After fixing it: Logs & Queue → status “failed”, type “Email” → resend all failed (last 30 days). What can't be detected is a server accepting an email that later lands in spam.
  • Security: only the site owner defines recipients. {field:…} is not allowed in the “To” field so the form cannot be abused as a mail relay. Headers are protected against injected line breaks.
  • Design: own light or dark email layout with a field table, an “Open in WordPress” button and the submission number in the footer. Emails to the site owner carry a discreet line “Sent with Leadtrace Formbuilder” at the bottom, emails to visitors do not.
  • Important: emails are not encrypted. Sensitive content belongs in WordPress, not in the email.

5. CRM: HubSpot and Brevo

HubSpot and Brevo are available. Other CRMs are not integrated. Make, n8n, Zapier and your own endpoints are reached via webhooks. Both live in the “Sync” tab.

  • HubSpot: service key or existing private app token. Submissions go to a HubSpot receiving form (Forms Submission API v3), appear in the contact timeline and trigger workflows. Fields are mapped to HubSpot properties (contact and company), with auto-suggestions by name. Click IDs (gclid, fbclid) and UTM are passed on automatically if the HubSpot form has the properties. The plugin passes on the HubSpot tracking cookie (hutk) and the page URL. Legal basis and consent (legal consent) are configurable.
  • Create the HubSpot form from Leadtrace: Sync → HubSpot → create in HubSpot. Leadtrace creates the HubSpot form with all fields and links it; a preview shows beforehand what will be transferred. Missing contact properties are created in the “Leadtrace” group. HubSpot forms created by Leadtrace get new fields added when you save, existing ones only on request. All fields in HubSpot are optional, captcha stays off, sensitive fields are never transferred. The key needs read and write access to forms and contact properties. If HubSpot rejects without a reason, Leadtrace retries in simplified form and says what was left out.
  • Import HubSpot forms: existing HubSpot forms are created as Leadtrace forms. Contact fields are imported, no files and no multi-step.
  • Brevo: API key. Create or update contacts (the email address is the key), map attributes, pick lists, newsletter with checkbox condition and double opt-in via a Brevo template.
  • HubSpot and Brevo can be enabled independently per form, for example HubSpot as the CRM and Brevo for the newsletter.
  • Delivery: every hand-over is a job in a queue with retry and log. Per submission you see status and errors per channel and can “Resend” per channel.

6. Tracking

  • dataLayer events (GTM mode, default): form_view, form_start, form_step_complete, form_submit, form_error, plus form_download. All with form_id, form_name, event_id (UUID) and step_count. Optionally generate_lead as an alias. Names and parameters are adjustable per form.
  • Direct mode without GTM: Google Ads conversion, Meta Pixel, TikTok Pixel and OpenAI pixel (ChatGPT Ads) directly from the plugin.
  • Server-side: Meta Conversions API, GA4 Measurement Protocol, TikTok Events API and OpenAI Conversions API (ChatGPT Ads). Email and phone are sent as SHA-256 hashes only. The same event_id in the browser and server event avoids double counting for Meta, TikTok, ChatGPT Ads and Google Ads. GA4 does not deduplicate.
  • ChatGPT Ads: conversion tracking for ads in ChatGPT. Settings → ChatGPT Ads: pixel ID and Conversions API key from the OpenAI Ads Manager. Events: lead_created (default), appointment_scheduled, registration_completed, subscription_created, trial_started. The click ID oppref lands in the attribution cookie; the pixel identifier and hashed email, phone and name are added, only with marketing consent. Optionally the plugin loads the OpenAI pixel itself, only after consent. “Test Conversions API” checks pixel ID and key without storing an event.
  • Attribution: the first-party cookie lfh_attr stores click IDs, UTM, first landing page and referrer, 90 days by default, only after consent, and is deleted on withdrawal. The values end up in the submission, in the CRM and in the server events.
  • Enhanced conversions / user_data: optional, only with marketing consent, off by default.
  • Report good leads to Meta (Settings → Meta, off by default): when a submission is marked as “Good lead”, a second event is sent to Meta once via the Conversions API, default name QualifiedLead. In Meta you can create a custom conversion from it. Only with marketing consent, only if Meta is enabled in the form, never from protected forms. For optimisation Meta usually only counts events a few days after the click, so rate promptly. “Unusable” is not reported.
  • Consent: the plugin reads the status from the cookie tool: Borlabs Cookie, Complianz, Real Cookie Banner, CookieYes, GDPR Cookie Compliance (Moove), iubenda, Cookie Notice (Hu-manity), WP Consent API, Google Consent Mode v2 (Cookiebot, Usercentrics and others). Automatic detection or fixed selection. Policies per channel: only with marketing consent, always without personal data, never. The option “No consent tool (everything allowed)” shows a warning.
  • The A/B variant is included in every event and every submission.
  • Note: the page URL is sent to the tracking services. For sensitive forms we recommend neutral addresses.

7. Webhooks, sheets and AI agents

  • Webhooks: any number per form, POST as JSON to Make, n8n, Zapier or your own endpoints. Events: form submitted and step completed (partial leads, optionally with the values so far). Custom headers, HMAC-SHA256 signature in the X-LFH-Signature header, spreadsheet protection against formulas, test send in the editor. With several webhooks each can be resent individually or all together, also for several selected submissions at once.
  • Google Sheet: form → “Sync” → “Sheets”. The plugin generates a script with a key; you paste it into the sheet under Extensions → Apps Script, deploy it as a web app and enter the address. “Send test row” checks the connection. Data goes straight into the sheet, without Google credentials in the plugin. Header row automatic, new fields as new columns, no duplicate rows, everything stored as text. Sensitive fields stay in WordPress.
  • Excel (Microsoft 365): via a webhook plus Make, Zapier or Power Automate (a premium plan is required there). A direct Microsoft login in the plugin is not provided.
  • AI agents (MCP): from WordPress 6.9, Leadtrace registers 14 abilities via the WordPress Abilities API, usable with the Agent Connector (Breakdance) or the MCP Adapter. Agents such as Claude, ChatGPT or Cursor can list, read, create, change and duplicate forms, get the embed code, list, read and redeliver submissions, and fetch statistics, delivery problems and a tracking overview. The agent works with the connected user's rights, sees no credentials and no field values of sensitive forms, and deletes nothing.

8. Submissions, statistics and operations

  • Submissions in WordPress: list with filter and search, detail view with fields, files, delivery status per channel, tracking data and log. CSV export, in parts for large volumes. Selected submissions can be resent in bulk.
  • Lead quality: choose “Good lead” or “Unusable” in the detail view. The list can be filtered by it, and the statistics show per source how many of the rated leads were good.
  • Statistics: its own menu item with views, submissions, conversion rate, delivery rate, trend, sources and delivery per channel, for 7, 30, 90 or 365 days, for all forms or one. The form list shows views, submissions and conversion of the last 30 days per form.
  • Drop-off analysis: Statistics → pick one form. Stages: seen, started, each step completed, submitted, each with share of views and loss compared with the previous stage; the biggest loss is highlighted. Also for “One question at a time”. Counted without cookies, without IP and without personal data. Ad blockers can prevent individual counts, submissions are exact.
  • Files: private folder wp-content/uploads/lfh-private/ with random names. Signed links with expiry (30 days) or download only after login. The dashboard checks whether the folder is protected; nginx needs a server rule for this.
  • Storage: “Store in WordPress” or “Deliver only, then clean up” (field data is removed by cron, the counter remains). Global retention period in days, log retention 30 days by default.
  • Spam protection: honeypot, time trap, rate limit per IP, origin check, Cloudflare Turnstile or reCAPTCHA v3, overridable per form. Spam is optionally stored.
  • IP addresses: hashed only by default, optionally anonymised or full. Passed on to HubSpot only if enabled. Trusted proxy setting for Cloudflare and similar services.
  • Roles: administrators have everything. The “Leadtrace Editor” role is meant for clients: forms and submissions, no settings.
  • Dashboard: submissions per day, sources, delivery problems, health checks (SMTP, cron, upload folder, license, API keys), plus a widget in the WordPress dashboard.
  • Delivery and logs: channels without credentials create no entry. If only one detail or the consent is missing, the entry shows as “Skipped”, not as an error. Under Logs & Queue all failed jobs of a channel can be resent in bulk (email, HubSpot, Brevo, webhooks, Google Sheet). The test event code for Meta and TikTok only applies to the test button, never to real submissions.
  • Multisite is supported: tables per blog, network-wide activation.

9. Privacy

  • Application form (toggle “Treat as application form” per form): submission and files are stored encrypted (libsodium/AES-256-GCM, key derived from the WordPress security keys). Files only after login with an audit log, automatic deletion 6 months after receipt, talent pool with consent for 24 months, notice box above the form (can be switched off).
  • Sensitive data (for health, legal and financial data): stored encrypted. Fields marked “Sensitive field” stay in WordPress and never go to HubSpot, Brevo, webhooks or email previews. Tracking without user data, not even hashed, with a neutral form name. Mandatory consent (Art. 9 GDPR) with stored text and timestamp. Access log for every opening and every export. Retention period 30, 90, 180 or 365 days. List and dashboard without field values. “Practice enquiry” template.
  • WordPress privacy tools: export and erasure of personal data by email address (Tools → Personal data), text block for the privacy policy.
  • Anonymous usage statistics (Settings → Privacy, on by default): once a week totals are sent to the vendor: number of forms, views, submissions, spam, delivery errors, features used and versions. Without the website address, license key, form names, field content or visitor data; the identifier is random and not linked to the license. Development and staging environments send nothing. Can be switched off via the toggle or the lfh_usage_stats_enabled filter.
  • Also: no custom fonts, no cookies before consent, A/B tests without cookies, consent gating for all tracking channels, salted email hash in the database, signed updates.

10. Import from other plugins

  • Sources: Contact Form 7, WPForms, Fluent Forms, Gravity Forms, Ninja Forms, Formidable Forms, Elementor Pro, Breakdance, HubSpot.
  • Imported: fields, logic, steps and thank-you text. Not imported: design, notifications, old submissions.
  • “Replace on pages” swaps the old shortcodes and elements for the new form, with undo.

11. For developers

Shortcode [lfh_form id="…"], PHP lfh_render_form(), REST namespace lfh/v1. Hooks include lfh_field_types, lfh_validation_errors, lfh_submission_created, lfh_enqueue_jobs, lfh_hubspot_payload, lfh_notification_args, lfh_form_css, lfh_render_form_html, lfh_spam_check, lfh_usage_stats_enabled. Frontend without jQuery or React (around 12 KB gzipped), CSS via --lfh-* variables, no !important.

12. Versions

  • 0.37.0 “Test a small change” in A/B tests, weekly report by email
  • 0.36.0 Drop-off analysis per form
  • 0.35.0 Lead quality, quality per source in the statistics, report good leads to Meta
  • 0.34.0 More reliable A/B tests: minimum 14 days, 20 submissions, correction for several variants
  • 0.33.0 Warning on failed emails, clear error texts, resend failed jobs in bulk
  • 0.32.0 Anonymous usage statistics (weekly, can be switched off)
  • 0.31.0 Personal thank-you page, deliberately pass fields to the target page
  • 0.30.0 Statistics page, metrics per form, individual and bulk resend
  • 0.29.0 Create the HubSpot form from Leadtrace, “Sync” tab, email building blocks
  • 0.28.0 Google Sheet, Excel guide, AI agents via MCP
  • 0.27.0 ChatGPT Ads (OpenAI pixel and Conversions API), new templates including shop templates
  • 0.26.0 Copy style from another form
  • 0.25.0 Email sending rules, confirmation variants, recipient hardening
  • 0.24.0 More cookie tools, consent settings tidied up
  • 0.23.0 “Sensitive data” mode, Practice enquiry template, salted email hash
  • 0.22.0 “In one row” layout, more style options, tested up to WordPress 7.1
  • 0.21.0 English interface
  • 0.20.0 Setup wizard
  • 0.19.0 One question at a time, full-screen page
  • 0.18.0 Application forms, field groups
  • 0.17.0 Import from other form plugins
  • 0.16.0 and earlier A/B tests, Brevo, TikTok, license server, signed updates, GDPR tools