submit lead
User submit lead form information
Function
web_event.track("lead_form", "submit", {
items: [{list attributes of Business Object}],
dims: {the relation items},
extra: {the extra properties}
});
Case 1 : Submit lead form
User submit lead form with these informations such as name, phone, email,....,etc
web_event.track("lead_form", "submit", {
items: [{
"type": "lead",
"name": "Barack Obama",
"phone": "0912345678",
"email": "[email protected]",
"lead_event": "QR code events",
"lead_attribue_code1": "Custom value 1",
"lead_attribue_code2": "Custom value 2",
"lead_attribue_codeN": "Custom value n",
"lead_locate": window.location.href // fixed this attribute
}]
});
Case 2 : Submit lead form & Create customer
User submit lead form with these informations such as name, phone, email,....,etc and create a customer from lead form
web_event.track("lead_form", "submit", {
items: [{
"type": "lead",
"name": "Barack Obama",
"phone": "0912345678",
"email": "[email protected]",
"lead_event": "QR code events",
"lead_attribue_code1": "Custom value 1",
"lead_attribue_code2": "Custom value 2",
"lead_attribue_codeN": "Custom value n",
"lead_locate": window.location.href // fixed this attribute
}],
dims: {
customers: {
"customer_id": "0c936e852d6d430e610963fda7bc1b1e", // Exp: md5(phone)
"customer_name": "Barack Obama",
"phone": "0912345678",
"email": "[email protected]",
"lead_event": "QR code events",
"customer_attribute_code_1": "Custom value 1",
"customer_attribute_code_2": "Custom value 2",
"customer_attribute_code_N": "Custom value n"
}
}
});
});
Last updated
Was this helpful?