Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Leadsources SDK Functions

## `trackLead(data)`
## `trackLead(data, formTitle)`

Submit a lead record with custom data. The SDK will automatically include all lead source data and visitor journey data when sending the lead record. Used to send data to your LeadSources dashboard.

**Parameters:**

- `data` - Object containing lead information (email, name, phone, etc.)
- `formTitle` - String (max 255 characters) identifying the form

**Example:**

```javascript
Expand All @@ -12,7 +17,7 @@ window.leadsources.trackLead({
name: "John Doe",
phone: "555-1234",
// ... any other fields
});
}, "Contact Us Form", "elementor-forms");
```

**When to use:**
Expand Down