Integrations / HubSpot
HubSpot logo
CRM

LeadLotus + HubSpot

Send lead attribution into every HubSpot contact.

HubSpot lets you create custom hidden form fields with your own internal name. LeadLotus matches against that name, so every form submission writes channel, drilldowns, landing page, and visit history straight onto the contact record — usable in lists, workflows, and reports.

1
Add the snippet to your site
Paste into your site's <head>. If you host a HubSpot CMS site, go to Settings → Website → Pages → Site header HTML and drop it there.
<!-- 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
Create the contact properties
In HubSpot: Settings (gear icon) → Properties → Create property. Object type: Contact. Create one single-line text property per field below — the Internal name must match exactly (e.g. "leadlotus-channel").
3
Add hidden fields in the form editor
Open the form (Marketing → Forms → Edit). Drag each property in from the left panel, click the field, and toggle "Make this field hidden". The internal name (which LeadLotus matches on) is already set from step 2.
leadlotus-channel
leadlotus-drilldown1
leadlotus-drilldown2
leadlotus-drilldown3
leadlotus-drilldown4
leadlotus-landing-url
leadlotus-first-visit
leadlotus-visits
4
Embed the form on your page
Use HubSpot's standard embed code. The LeadLotus snippet finds the rendered form, fills the hidden inputs, and HubSpot writes them onto the new contact 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