Integrations / WordPress
WordPress logo
Website Builders

LeadLotus + WordPress

Install on any WordPress site in one step.

WordPress is just the host — LeadLotus drops in via the theme header or any header/footer plugin and then works with whichever form plugin you use (Gravity Forms, WPForms, Contact Form 7, Fluent Forms, native block forms).

1
Add the snippet to your site header
Easiest path: install the free "WPCode" or "Insert Headers and Footers" plugin → Header section → paste the snippet. Alternative: edit your active theme's header.php and add the snippet just before </head>.
<!-- LeadLotus Attribution Snippet -->
<script async
  src="https://www.leadlotus.com/snippet.js?key=YOUR_API_KEY"
  data-key="YOUR_API_KEY"
  data-endpoint="https://www.leadlotus.com/api/v1/ingest">
</script>
2
Confirm the snippet is live
Open your homepage in a private window, view source, search for "leadlotus". You should see the script tag. Reload — LeadLotus starts logging visits immediately.
3
Wire up your form plugin
Add hidden fields to your form plugin (Gravity Forms, WPForms, Contact Form 7, Fluent Forms). Each plugin has a "Hidden Field" element — set the field name to leadlotus-channel, leadlotus-drilldown1, etc. and LeadLotus fills them automatically on submit.

Attribution fields

LeadLotus writes these hidden field values just before your form submits.

Field nameExample valueDescription
leadlotus-channelOrganic SearchTop-level channel (Organic Search, Paid Social, Direct, Referral, etc.)
leadlotus-drilldown1GoogleChannel-specific source (search engine, social network, or utm_source)
leadlotus-drilldown2spring_launchutm_campaign on paid traffic, referring host on organic
leadlotus-drilldown3pricing_keywordutm_term — keyword or ad term, when present
leadlotus-drilldown4hero_ctautm_content — ad variant or placement, when present
leadlotus-landing-url/pricingFirst landing page of the visitor
leadlotus-first-visit2026-04-24Date of the first visit (ISO)
leadlotus-visits3Total sessions before conversion