Bot Bán Hàng Pixel
Bot Bán Hàng Pixel (BBH Pixel) giúp bạn tracking người dùng và quản lý tập trung các Lead (thông tin khách hàng tiềm năng) từ các kênh : Website, BotUp, Selling Page, Tiktok, Server API ... về 1 nơi.
Last updated
<script>
document.addEventListener("bbh-ready", function () {
$bbh.lead({
name : "name",
email : "email@botbanhang.vn",
phone : "0985123123",
address : "214 Nguyen xien",
note : "Ghi chú"
})
})
</script><script>
document.addEventListener("bbh-ready", function () {
$bbh.message( "Khách hàng xem sản phẩm iPhone 12" )
})
</script><script>
document.addEventListener("bbh-ready", function () {
console.log("Bot Ban Hang Pixel Ready!")
})
</script><html>
<head>
<meta charset="utf-8">
<title>Bot Bán Hàng</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1> Nhập thông tin khách hàng </h1>
<input type="text" id="name" value="Mike">
<input type="text" id="phone" value="0985123123">
<input type="email" id="email" value="dev@botbanhang.vn">
<input type="text" id="address" value="214 Nguyen Xien">
<input type="text" id="note" value="Ghi chú">
<button id="submit">Gửi</button>
</body>
<script src="//botbanhang.vn/sdk/bbh.min.js"></script>
<script>
// Thay PAGE_ID của bạn tại đây.
$bbh.init('PAGE_ID_CỦA_BẠN')
$bbh.viewpage()
// Khi người dùng click vào nút "Gửi"
document.querySelector('#submit').addEventListener("click", function () {
// Tạo mới 1 Lead thông tin khách hàng điền Form.
$bbh.lead({
name : document.querySelector('#name').value, // id="name"
email : document.querySelector('#email').value, // id="email"
phone : document.querySelector('#phone').value, // id="phone"
note: document.querySelector('#note').value, // id="note"
address : document.querySelector('#address').value // id="address"
})
// Tạo thêm 1 tin nhắn
$bbh.message('Khách hàng mua sản phẩm iPhone 12')
})
// Sự kiện khi SDK đã sẵn sàng
document.addEventListener("bbh-ready", function () {
console.log("Bot Ban Hang Pixel Ready!")
})
</script>
</html><script>
// Tạo mới 1 Lead
$bbh.lead({
name : $model.name,
email : $model.email,
phone : $model.phone,
note: $model.note,
address : $model.address
})
// Tạo 1 tin nhắn
$bbh.message( $model.message )
</script>