Docs

Install LeadButton in 2 minutes

Paste one <script> snippet just before </body> — that's all. No plugin, no developer. Below it's spelled out per platform, plus how leads reach you via signed webhooks.

Free up to 20 leads/mo · no credit card · live in 2 minutes
Install guides

Choose your platform

The same snippet works everywhere — only where you paste it differs. No plugin, no developer.

Paste the snippet with a header/footer plugin (e.g. WPCode) or in your theme — no separate LeadButton plugin needed.

  1. 1

    Open your footer scripts

    Go to WPCode → Header & Footer, or Appearance → Theme File Editor and open footer.php.

  2. 2

    Paste the snippet before </body>

    Put the snippet in the 'Footer' box (or just before </body> in footer.php).

  3. 3

    Save and reload

    Save and open your site — the button appears bottom-right on every page.

before </body>
<!-- paste once, done -->
<script async
  src="https://cdn.leadbutton.app/w.js"
  data-key="wgt_9fk3a2"></script>
Done? Open your site — the button is bottom-right. Not sure? Use 'Verify install' in the back office.
Lead delivery

The webhook contract

Every lead is stored and delivered instantly via a branded email and/or a signed webhook. This is the short version — the full contract is in the reference.

Signed, with one retry

On every new lead LeadButton POSTs a flat JSON payload to your endpoint with an HMAC-SHA256 signature in the header.

  • POST · application/json · header X-LeadButton-Signature
  • HMAC-SHA256 over the raw body, keyed with your signing secret
  • one retry on a non-2xx response or timeout
  • test-payload button + per-lead delivery log (email ✓ · webhook ✗)
example payload
POST https://your-endpoint.example/hooks   ← your URL
Content-Type: application/json
X-LeadButton-Signature: sha256=9f86d081884c7d65…

{
  "lead_id": "6b1f8c2a-4e77-4d3a-9b2e-0c5a1f7d9e42",
  "space_code": "a1b2c3d4e5f60",
  "widget_key": "contactbot",
  "fields": { "name": "Jane Example", "email": "jane@example.com" },
  "page_url": "https://example.com/pricing",
  "created_at": "2026-07-08T09:12:44Z"
}

Ready to put your button live?

Build your flow from a template and paste one snippet. Free up to 20 leads/mo, no credit card.