How to Register a Lead with Customerly Messenger

The registerLead function in Customerly Messenger allows you to automatically capture and register leads from forms by passing specific data.

Luca Micheli
Written by Luca MicheliLast update 4 months ago

Using the registerLead function, you can effortlessly capture lead information from a form and pass any relevant data to Customerly Messenger. This function helps streamline your lead generation process by automatically registering leads with specific details.

customerly.registerLead(email, {
    name: "Luca",
    last_name: "Micheli",
    company_size: 1000
});

Steps to Register a Lead

  1. Call the Function: Use the customerly.registerLead function.

  2. Pass Email: Provide the lead's email address as the first parameter.

  3. Pass Properties Object: Include a data object with additional lead properties like name, last name, and company size.

Example Usage Suppose you have a form capturing lead information. Once the form is submitted, use the following code to register the lead:

customerly.registerLead("luca.micheli@example.com", {
    name: "Luca",
    last_name: "Micheli",
    company_size: 1000
});

Benefits

  • Automation: Simplifies the process of capturing and storing lead information.

  • Customization: Allows you to pass various data points relevant to your business needs.

  • Efficiency: Streamlines lead management, enabling quicker follow-ups and better data organization.

By using the registerLead function, you can ensure that your lead information is accurately captured and easily accessible, enhancing your overall lead generation and management process.

Did this answer your question?