Follow

Forms

Forms

To transfer contacts directly from your landing pages and website forms you'll need to implement a simple JavaScript code on your web form.

Once the code is implemented:

  • Contact's details will automatically be transferred to your Optinize account.
  • A cookie will be added to the user's browser to track users behavior on your website and create customer journeys accordingly.

For example, tracking what URLs the user visited in, abandoned cart, completed a purchase and more. Click here to learn more about contact's actions.

Implementing the code:

The first step is to get your Buyer ID. Mouse over your account name in the upper right corner:

 

Click on “My Profile”.

Under your name there a box with your account ID:

Save it for later

  • You can create up to 10 different form IDs to separate your leads sources.
  • After adding your account ID and form ID to the Javascript code, you will need to match the fields on the form to the fields on your Optinize account.

 

Example of your web form before implementing Optinize Java Script:

<!DOCTYPE html>

<html>

<head>

<meta charset="ISO-8859-1">

<title>the title</title>

</head>

<body>

<h1>OPTINIZE TEST</h1>

 

<form id="the_form" >

First Name: <input id="firstName" value="" >

<br>

Last Name: <input id="lastName" value="" >

<br>

Sub ID: <input type="" id="subid" value="" >

<br>

External Id: <input type="" id="externalid" value="" >

<br>

Email Address: <input id="emailAddress" value="" >

<br>

Phone: <input id="phone"  >

<br>

Gender: <input id="gender"  >

<br>

Birth date: <input id="birthdate"  >

<br>

Street: <input id="street" >

<br>

City: <input id="city" >

<br>

State: <input id="state" >

<br>

Country: <input id="country" >

<br>

Postal Code: <input id="postalCode" >

<br>

Area Code: <input id="areaCode" >

 

<br><br>

<button type="button" id="submit1" onclick="optinize_form_submit()">Submit</button>

 

</form>

 

The code you need to implement on your website:

<script type="text/javascript"> 

 

/* <![CDATA[ */

var optinize_client_id = 1602; // Ask for your client ID support@optinize.com

 

var optinize_form_config = {

                    landing_page_id:1 , // 1 , 2 , 3…10 for saving the data on different sources

                     //submit_button: 'submit1',// one way to submit , another is to fire optinize_form_submit(); manualy after logical tests

                    //form:'the_form' , // put the form name or id according to the find_by parameter

                    find_by:'id', // name

                    // after_optinize_function: , // put the function name without parameters

                    submit_form_after_optinize:false, // default is true

                    data_fields: // put the field names or ids according to the find_by parameter

                    {

                             first_name: "firstName",

                             last_name: "lastName",

                             sub_id: "subid",

                             external_id: "externalid",

                             email: "emailAddress",

                             phone: "phone",

                             gender: "gender",

                             birth_date: "birthdate",

                             street: "street",

                             city: "city",

                             state: "state",

                             country: "country",

                             postal_code: "postalCode",

                             area_code: "areaCode",

                    }

                   

                   

}

/* ]]> */

</script>

 

<script type="text/javascript" src="https://app.optinize.com/page_action/add_lead_form.php"></script>

 

End of the Java Script code

 

</body>

</html>

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.