Use the v2 lead form to collect enquiries from your website in Admin → Customers → Leads.
Who this is for#
Business owners and managers who run their own website, have an issued public embed key, and want website enquiries to reach Naayya.
Get your embed key#
The current Website embed section does not show a Lead form section. A lead submission requires an issued public embed key; a business name or slug is not enough. If you do not already have a key, contact support@naayya.com to ask whether lead-form setup is available for your business.
Add the form (2 lines)#
Paste these lines into the HTML or code block where you want the form to appear:
<script type="module" async src="https://www.naayya.com/plugin/v2/naayya-lead-form.js"></script>
<naayya-lead-form embed-key="YOUR_EMBED_KEY"></naayya-lead-form>The form includes first name, last name, email, phone, and message fields. Email and consent are required before a visitor can submit it.
Options#
Set these attributes on the <naayya-lead-form> element when you need to
adjust the form:
| Attribute | What it does |
|---|---|
embed-key | Required. An issued public key for the business that receives the enquiry. A business name or slug cannot be used for lead submissions. |
source-label | Labels the form's page or placement, such as Homepage or Pricing. |
heading | Heading shown above the form. |
button-label | Text on the submit button. The default is Send. |
success-message | Message shown after a successful submission. |
theme | light, dark, or auto. Without it, the form uses the Theme set in the Website embed section, and light when none is set. |
privacy-url | Link used for the consent notice. If omitted, the form uses Naayya's privacy notice. |
If you place the form on more than one page, use a different source-label on
each form so you can identify its placement when reviewing enquiries.
What happens after someone submits#
- A successful submission can appear in Admin → Customers → Leads.
- The visitor sees a confirmation message after a successful submission.
- If the submission does not succeed, the form shows an error so the visitor can correct the form or try again.
- If the same email is already a lead for the business, the submission is recorded as another touch on that existing lead.
Consent and privacy#
The visitor must agree to the privacy notice before submitting the form. Set
privacy-url to your own privacy policy when you want the consent link to open
your policy; otherwise, the form uses Naayya's privacy notice.
Match your brand#
Use the shared Appearance settings. Button hover and Schedule cards do not apply to the form. The form still works in its standard style if appearance fails to load.
The form’s theme attribute overrides the saved Theme. CSS on the naayya-lead-form element can override colours, corners and spacing.
Where to paste it#
Use your builder’s HTML or code block that accepts custom elements and scripts.