<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" type="image/ico" href="https://www.brandchat.co/static/favicon-1631775354579.ico">
<title>Brandchat - Customer Engagement Platform with Chatbots and AI</title>
<link href="https://www.brandchat.co/static/bootstrapmin-1568811113326.css" [object Object] rel="stylesheet" data-fractal="1">
<link href="https://www.brandchat.co/static/main-7c9c25b8fa80e59f331f.css" [object Object] rel="stylesheet" data-fractal="1">
<script src="https://www.brandchat.co/static/vuemin-1631776007955.js" [object Object] type="text/javascript" data-fractal="1"></script>
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,600,700,900&display=swap" rel="stylesheet">
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<script type="application/javascript" nonce="48ec77924005b282c3641ac584b289d8">
var _SHOP_DIRECTORY_URL = 'https://www.brandchat.co/api/directory/live/v1/public';
var _AUTH_API_URL = 'https://www.brandchat.co/api/sso/api/jwt/'
var _LOGOUT_API_URL = 'https://www.brandchat.co/api/sso/logout'
var _STATS_URL = 'https://www.brandchat.co/api/stats/v1';
var _PID = 'e31244d18872fac23fa64a3be4a8c2de';
var _PVID = 'original';
var _FLOWID = 'VCoBok4pgAASfRys5pLgkO1MCDMYwcu1';
</script>
</head>
<body>
<div id="vueapp">
<div class="main-nav pt-0 pt-md-4" id="main-nav">
<div class="container">
<div id="main-nav-inner" class="d-flex flex-column flex-md-row align-items-center py-3 mb-3 bg-white ">
<h5 class="my-0 mr-md-auto font-weight-normal">
<a class="navbar-brand d-flex" href="/">
<img src="https://www.brandchat.co/static/new-11-1569131943345.png" class="d-inline-block align-top" alt="Brandchat Logo">
<label class="ml-2 align-self-center mb-0 font-weight-bold d-none"></label>
</a>
</h5>
<nav class="my-2 my-md-0 mr-md-3 d-flex justify-content-between">
<a class="p-2 mr-md-2 active" href="/">Home</a>
<a class="p-2 mr-md-2 " href="/features">Features</a>
<a class="p-2 mr-md-2 " href="/pricing">Pricing</a>
<a class="p-2 mr-md-2 " href="/blog">Blog</a>
<a class="p-2 mr-md-2 " href="/faqs">FAQs</a>
</nav>
</div>
</div>
</div>
<div class="page"><div class="container py-5">
<div class="hero px-3 pb-3 pt-0 pb-md-5 mx-auto text-center row">
<h1 class="display-3 col-lg-10 col-md-10 offset-lg-1 offset-md-1 pt-md-5 pt-0">
<!--Your customers just want answers!-->
Unlock the Power of Chatbot Automation:
</h1>
<h2 class="col-lg-10 col-md-10 offset-lg-1 offset-md-1 pt-md-5 pt-0">Give Your Customers the Answers They Need!</h2>
<p class="lead col-lg-6 offset-lg-3 pt-3 col-md-8 offset-md-2">
<!--Live Chat customer support and engagement software for every business with an online presence.-->
Chatbots provide instant customer service and automate business operations!
</p>
<div class="w-100">
<div class="input-group mx-auto row" style="max-width:290px;letter-spacing:-1px">
<div class="input-group-append col-12 col-md-12 p-0 text-center">
<button type="button" onclick="window['bc'].channel('Join Brandchat (Bot)')" class="btn-block input-group-text bg-primary text-light d-block text-center ">Start for Free!</button>
</div>
</div>
</div>
</div>
</div>
<div class="container pt-5">
<div class="card-deck position-relative mb-3 offset-icon">
<div class="card text-light feature-grid-block mb-4 box-shadow">
<div class="pl-5 icon"><img class="img-fluid" src="https://www.brandchat.co/static/5d858ea508e53e83c7df0c0e_attract-01-p-5001-1569034043915.png"></div>
<div class="card-body">
<h2 class="card-title font-weight-bold ml-3">Attract</h2>
<p>
<!--Qualify leads and optimise your website for conversions by adding a live chat plugin.-->
Attract more customers and boost conversions by implementing a live chat plugin to qualify leads and optimize your website.
</p>
</div>
</div>
<div class="card text-light feature-grid-block mb-4 box-shadow">
<div class="pl-5 icon"><img class="img-fluid" src="https://www.brandchat.co/static/5d858eba9d77338d4bb34a6e_engage-02-p-5001-1569034150616.png"></div>
<div class="card-body">
<h2 class="card-title font-weight-bold ml-3">Engage</h2>
<p>
Livechat on a website allows businesses to quickly and efficiently assist customers, resulting in increased satisfaction and sales.
<!--Use chatbots or real time messaging via the Brandchat App to guide your customers through the sales process 24/7.-->
</p>
</div>
</div>
<div class="card text-light feature-grid-block mb-4 box-shadow">
<div class="pl-5 icon"><img class="img-fluid" src="https://www.brandchat.co/static/5d858ef508e53e0d48df0ca5_grow-03-p-10801-1569034161448.png"></div>
<div class="card-body">
<h2 class="card-title font-weight-bold ml-3">Grow</h2>
<p>Scale faster by providing new customers a shorter buying process while retaining existing customers with automated support.
</p>
</div>
</div>
</div>
</div>
<div class="container-fluid p-0">
<div class="pt-4 pt-md-3 pb-3 my-md-5 our-customers px-3">
<div class="section-header section-header-small text-center pb-4 pb-md-4">
<h3>Trusted by</h3>
</div>
<div class="row">
<div class="col-4 col-md-2 col-lg-2 align-self-center">
<img class="img-fluid mx-auto d-block" src="https://www.brandchat.co/static/synwaypyramidlogo-1631787433465.png" alt="Sunway Pyramid">
</div>
<div class="col-4 col-md-2 col-lg-2 align-self-center">
<img class="img-fluid mx-auto d-block" src="https://www.brandchat.co/static/5d60c4a945d89389a04f7460_samasama-p-5001-1568907739727.png" alt="Samasama Hotel">
</div>
<div class="col-4 col-md-2 col-lg-2 align-self-center">
<img class="img-fluid mx-auto d-block" src="https://www.brandchat.co/static/Sunway-BIG-BOX-Retail-Park-Logo3_W-1575909445641-1631787240296.png" alt="Sunway Big BOx">
</div>
<div class="col-4 col-md-2 col-lg-2 align-self-center">
<img class="img-fluid mx-auto d-block" src="https://www.brandchat.co/static/WEB-Logo-SL-1631787328039.png" alt="Sunway Lagoon">
</div>
<div class="col-4 col-md-2 col-lg-2 align-self-center">
<img class="img-fluid mx-auto d-block" src="https://www.brandchat.co/static/5d60c5d245d8934d054f7531_nearU-p-5001-1568907787713-1568908487546.png" alt="NearU">
</div>
<div class="col-4 col-md-2 col-lg-2 align-self-center">
<img class="img-fluid mx-auto d-block" src="https://www.brandchat.co/static/shop8home-1631787719985.png" alt="shop8home">
</div>
</div>
</div>
</div>
<div class="container">
<div>
<img class="img-fluid" src="https://www.brandchat.co/static/iconfeature-01-1569139717842.png">
</div>
</div>
<div class="container">
<div class="mb-4 pb-5 my-5 zigzag-section separator-lines">
<div class="row">
<div class="col-12 col-md-6 order-6">
<img class="img-fluid" src="https://www.brandchat.co/static/5d702605884d46276d626cf7_7d251-1569035048511.gif">
</div>
<div class="col-12 col-md-6 order-1">
<div class="pt-3 pt-md-0">
<h3 class="title">Attract</h3>
<p>Qualify leads and optimise your website for conversions by adding a live chat plugin.</p>
<ul class="list-dot-blue list-unstyled pt-3">
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">Real time conversations with interested customers</li>
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">24x7 automated chatbots leading your customers through sales process</li>
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">Auto reply to common questions with preset answers</li>
</ul>
<a href="/features" class="btn btn-primary bg-blue mb-4" style="display:inline-block;">Learn more →</a>
</div>
</div>
<div class="col-12 d-md-none separator-line order-12"><span></span></div>
</div>
<div class="row p-md-5">
<div class="col-12 col-md-6 order-6 order-md-1"><img class="img-fluid" src="https://www.brandchat.co/static/5d823cb8585f0528f88ec875_ezgifcom-gif-maker2011-1569039079800.gif"></div>
<div class="col-12 col-md-6 order-1 order-md-6">
<div class="pt-3 pt-md-0">
<h3 class="title">Engage your customers on the go!
</h3>
<p>Use chatbots or real time messaging via the Brandchat App to guide your customers through the sales process 24/7.
</p>
<ul class="list-dot-blue list-unstyled pt-3">
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">The Brandchat App is available on both the Google Play Store and the App Store
</li>
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">Pop-up notifications ensure agents will never miss a query
</li>
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">Tranfer customers to other departments while preserving chat history</li>
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">Bring chatbots into conversation to take over repetitive steps such as Registration form</li>
</ul>
<a href="/features" class="btn btn-primary bg-blue mb-4">Learn more →</a>
</div>
</div>
<div class="col-12 d-md-none separator-line order-12"><span></span></div>
</div>
<div class="row p-md-5">
<div class="col-12 col-md-6 order-6"><img class="img-fluid" src="https://www.brandchat.co/static/5d6e09b9141661e75ce931b5_1766-bar-graph1-1569039109833.gif"></div>
<div class="col-12 col-md-6 order-1">
<div class="pt-3 pt-md-0">
<h3 class="title">Grow</h3>
<p>Scale faster by providing new customers a shorter buying process while retaining existing customers with automated support.
</p>
<ul class="list-dot-blue list-unstyled pt-3">
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">Option to obtain customer's emails to store in existing database
</li>
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">Upsell to existing customers
</li>
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">Answering customers' queries fast increases customer satisfaction
</li>
<li><img src="https://www.brandchat.co/static/list-dot-blue-1569036128121.png">Leading to a growth in both customers and net profits
</li>
</ul>
<a href="/features" class="btn btn-primary bg-blue mb-4">Learn more →</a>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid bg-custom-light">
<div class="container cards-with-icons py-5">
<h2 class="title text-center p-4 league">FEATURES</h2>
<div class="card-deck">
<div class="card">
<div class="card-body">
<div class="icon icon-small"><img src="https://www.brandchat.co/static/5d8240647ea29303ecabbc2d_web20access-031-1569040276525.png" class="" alt="..."></div>
<div class="">
<h5 class="card-title">Web Access Console</h5>
<p class="card-text">Dedicated web console available to manage your active chats</p>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="icon"><img src="https://www.brandchat.co/static/5d823fe2d06ccc1b02a23cd9_audit-031-1569046729081.png" class="img-fluid card-img-top" alt="..."></div>
<div class="">
<h5 class="card-title">Chat Audit</h5>
<p class="card-text">Review chats to continuously improve on internal messaging strategy, and preserve for potential dispute resolution.</p>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="icon"><img src="https://www.brandchat.co/static/5d824190d06cccb45ca24207_auto-031-1569046736826.png" class="card-img-top" alt="..."></div>
<div class="">
<h5 class="card-title">Auto Closing/ Archiving</h5>
<p class="card-text">Each chat engagement is treated as a ticket that you can "close" or archive. Schedule when to auto-archive completed tickets.</p>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="icon"><img src="https://www.brandchat.co/static/5d823dba585f056bea8eca9c_dsahboard-031-1569046749486.png" class="card-img-top" alt="..."></div>
<div class="">
<h5 class="card-title">Dashboard with Statistics</h5>
<p class="card-text">Complete statistics on incoming chats, time taken to respond, per-agent stats, per-team stats, location based info, and many more!</p>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="icon"><img src="https://www.brandchat.co/static/5d823ea0708f0f0fe6a37ee3_pencil-031-1569046759808.png" class="card-img-top" alt="..."></div>
<div class="">
<h5 class="card-title">Personalised Branding</h5>
<p class="card-text">Match your website's live chat button and screen interface with your corporate colours.</p>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="icon"><img src="https://www.brandchat.co/static/5d823f3b708f0fa585a38086_forward-031-1569046769015.png" class="card-img-top" alt="..."></div>
<div class="">
<h5 class="card-title">Chat Forwarding</h5>
<p class="card-text">Forward chats to any department, at any time. Remain involved in the original chat to monitor the ongoing conversation, or choose to exit it.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid bg-blue text-light">
<div class="container py-5 pills-rich">
<h3 class="text-center f-26 font-weight-bold league">Meet the brandchat mobile app.
</h3>
<p class="text-center">
Reply to customer queries on the go with the brandchat mobile app.
<br>Available on Google Play Store and the App Store.
</p>
<div class="pt-5">
<div class="row">
<div class="col-12 col-md-5">
<div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
<a class="nav-link active p-0 p-md-4 text-light pb-4" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">
<div class="colour-block-sml-3"><img width="36" src="https://www.brandchat.co/static/sign-up-04-1569132615018.png"></div>
<h5 class="pt-3">Easy Setup</h5>
<p>Very intuitive setup process designed to take no more than 10 minutes. Hassle-free!</p>
</a>
<a class="nav-link text-light p-0 p-md-4" id="v-pills-profile-tab " data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false">
<div class="colour-block-sml-3"><img width="36" src="https://www.brandchat.co/static/5d70425e71700ffbe384cab6_animat-rocket1-1569082813982.gif"></div>
<h5 class="pt-3">Secure & Fast</h5>
<p>Every agent account is password protected.</p>
</a>
<a class="nav-link text-light p-0 p-md-4" id="v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false">
<div class="colour-block-sml-3"><img width="36" src="https://www.brandchat.co/static/5d70427e5709680781039489_animat-responsive1-1569082835730.gif"></div>
<h5 class="pt-3">Developer Friendly</h5>
<p>Custom chatbot build option is available too. To learn more, <button onclick="javascript:window['bc'].chat()" class="text-light btn btn-link p-0 m-0">Talk to us</button></p>
</a>
</div>
</div>
<div class="col-12 col-md-7 mx-auto d-none d-md-block">
<div class="tab-content" id="v-pills-tabContent">
<div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
<img class="img-fluid" src="https://www.brandchat.co/static/5d859b9af0c5f369247c5b62_signu20up-04-p-8001-1569082674714.png">
</div>
<div class="tab-pane fade" id="v-pills-profile" role="tabpanel" aria-labelledby="v-pills-profile-tab">
<img class="img-fluid" src="https://www.brandchat.co/static/5d8599659d773382bcb392be_login-05-p-8001-1569082781563.png">
</div>
<div class="tab-pane fade" id="v-pills-messages" role="tabpanel" aria-labelledby="v-pills-messages-tab">
<img class="img-fluid" src="https://www.brandchat.co/static/5d859dc48de89c82898c68b8_developer-06-p-8001-1569082798451.png">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container ap-0">
<div class="bg-blue mx-0 m-md-5 p-md-5 p-2 my-4 py-5 text-light try-today text-center text-lg-left">
<div class="row p-3">
<div class="col-12 col-lg-6">
<h3 class="f-23 font-weight-bold league">Try Brandchat today! </h3>
<p class="text-light">Not sure which plan is right for you? <a class="text-light" href="/pricing">Learn more</a></p>
</div>
<div class="col-8 offset-2 col-lg-6 offset-lg-0">
<div class="w-100">
<div class="input-group mx-auto input-group-reverse" style="letter-spacing:-1px">
<div class="input-group-append d-none d-md-inline-block">
<button onclick="window['bc'].channel('Join Brandchat (Bot)')" class="input-group-text" type="button">Get Started for Free!</button>
</div>
<button onclick="window['bc'].channel('Join Brandchat (Bot)')" class="text-center my-2 w-100 mx-auto btn-white bg-white btn d-block d-md-none f-22" type="button">Get Started for Free!</button>
</div>
<label class="d9123_msem_fld"><input type="text" name="d9123_msem"></label>
<div class="form-text text-white ml-2">✔ 14-Day Trial ✔ Easy Setup</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid p-0">
<footer class="footer pt-4 pt-md-5 border-top">
<div class="container">
<div class="row no-gutters">
<div class="col-12 col-lg-3 text-center text-md-left">
<a href="/">
<img class="img-fluid mb-2 logo-footer lazyload" data-src="https://www.brandchat.co/static/Brandchat-logo-new-10-1631775051366/w768.png" data-srcset="https://www.brandchat.co/static/Brandchat-logo-new-10-1631775051366/w180.png 180w" sizes="(min-width: 768px) 12.5vw,25vw">
</a>
<div>
<a href="/" class=""><strong class="text-dark">Brandchat</strong></a>
<br>
</div>
<small class="my-3 d-block text-muted"></small>
</div>
<div class="col-4 col-lg-2">
<h5>About</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="https://www.alcassoft.com/about-alcassoft" target="_blank">Alcassoft</a></li>
<li><a class="text-muted" href="/privacy">Privacy Policy</a></li>
<li><a class="text-muted" href="/privacy">Terms</a></li>
</ul>
</div>
<div class="col-4 col-lg-2">
<h5>Product</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="/pricing">Pricing</a></li>
<li><a class="text-muted" href="/features">Features</a></li>
<li><a class="text-muted" href="/features#mobile-app">Mobile App</a></li>
<li><a class="text-muted" href="/features#chatbots-ai-bots">Chatbots & AI Bots</a></li>
<li><a class="text-muted" href="/faqs">FAQs</a></li>
</ul>
</div>
<div class="col-4 col-lg-2">
<h5>Social</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="http://fb.com/brandchatapp">Facebook</a></li>
<li><a class="text-muted" href="http://twitter.com/brandchatapp">Twitter</a></li>
</ul>
<h5>For Developers</h5>
<ul class="list-unstyled text-small">
<li><a class="text-muted" href="https://github.com/almircajic/brandchat-bot-core" target="_blank">Build your own Chatbot</a></li>
</ul>
</div>
<div class="col-12 col-lg-3">
<h5>Get Started Today</h5>
<div class="w-100">
<div class="input-group">
<div class="input-group-append">
<button onclick="window['bc'].channel('Join Brandchat (Bot)')" class="input-group-text bg-primary text-light fw-600" type="button">Get Started</button>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="text-center mt-3 mb-4 text-small text-grey">
© Alcassoft 2011-2025. All rights reserved.
</div>
</div>
</div>
</div>
</footer>
</div>
</div>
</div>
<script src="https://www.brandchat.co/static/vuejs-components-7581fe90de88d6819291.js" [object Object] type="text/javascript" data-fractal="1"></script>
<script src="https://www.brandchat.co/static/jquery-slim.js-d4134b3bfe97e20d1ed4.js" [object Object] type="text/javascript" data-fractal="1"></script>
<!--failed script loading - no asset found in db -->
<script src="https://www.brandchat.co/static/bootstrapmin-1569081773577.js" [object Object] type="text/javascript" data-fractal="1"></script>
<script src="https://www.brandchat.co/static/custom-v2-6e4e978ae1c0a380cce3.js" [object Object] type="text/javascript" data-fractal="1"></script>
<script src="https://www.brandchat.co/static/lazysizes-6c56a43493e4528377e9.js" [object Object] type="text/javascript" data-fractal="1"></script>
<script type="application/javascript" nonce="48ec77924005b282c3641ac584b289d8">
console.log("Loading CMS JS")
var _TESTID = ""
if(typeof TEST_ID != 'undefined'){
_TESTID = TEST_ID
}
function abeventh(e,elem){
if(_TESTID==""){
return;//no testid
}
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.open('GET', 'https://www.brandchat.co/api/stats/v1/variants?e='+e+'&v='+_PVID+'&pid='+_PID+'&fid='+_FLOWID+'&tid='+_TESTID);
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
xhr.send();
xhr.onload = function() {
if(xhr.status===200){
//console.log(xhr.response)
}
else{
console.log("failed abtest call")
}
if(elem && elem.href && elem.href.indexOf('javascript:')<-1 && elem.href.substr(0,1)!='#'){
location.href = elem.href;
}
return true;
};
};
function abevent(e){
abeventh(e, null)
};
function _sub(d,id,slug){
$("#_sub_"+id).addClass('inprogress');
_stats(d+'/subscribe',{iid:id,slug:slug}, function(r){
console.log("r"+r+";")
$("#_sub_"+id).removeClass('inprogress');
if(r && r=="1"){//subscribed
console.log("subscribed")
$("#_sub_"+id).addClass('active');
}
else{//unsubs
console.log("unsubscribed")
$("#_sub_"+id).removeClass('active');
}
})
}
var _subsciptions = []
function _mysub(){
//console.log("My Subs");
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.open('GET', 'https://www.brandchat.co/api/stats/v1/subscriptions');
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
xhr.send();
xhr.onload = function() {
console.log(xhr.status === 200)
if(xhr.status===200){
var json = JSON.parse(xhr.responseText)
//console.log("xhr.response", json);
for (step = 0; step < json.length; step++) {
var t1 = json[step]
//var getHTML = $("#"+d+"_sub_"+t1.slug).html();
//if(getHTML && getHTML.indexOf('notext')>=0){
//$("#_sub_"+t1.id).html('<i class="icon-heart active"></i>');
//}
//else{
//$("#"+d+"_sub_"+t1.slug).html('<i class="icon-heart active"></i>FOLLOWING');
//}
$("#_sub_"+t1).addClass('active');
//if(!_subsciptions[d]){_subsciptions[d]=[]}
_subsciptions.push(t1)
}
}
};
}
function _stats(d,att, cb){
var utms = ""
if(typeof att ==='object'){
att['urlvars'] = decodeURI(location.search.substring(1))
att['ref'] = encodeURIComponent(document.referrer)
if(!att.q){
att['q'] = _searchq
}
if(!att.flow && _FLOWID){
att['flow'] = _FLOWID
}
try{
var langFC = window._getCookie('_plang')
if(langFC && langFC!='en'){
att['lang'] = langFC
}
}
catch(e){}
var source = window._getCookie('utm_source')||(att['urlvars']?att['urlvars']['utm_source']:null)
var medium = window._getCookie('utm_medium')
var campaign = window._getCookie('utm_campaign')
if(source){
utms=utms+"?utm_source="+source
if(medium){
utms=utms+"&utm_medium="+medium
}
if(campaign){
utms=utms+"&utm_campaign="+campaign
}
}
}
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.open('POST', 'https://www.brandchat.co/api/stats/v1/'+d+utms);
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
xhr.send(JSON.stringify(att));
xhr.onload = function() {
//console.log(xhr.status === 200)
if(xhr.status===200 && cb){
cb(xhr.response)
}
};
}
window._getCookie = function(name) {
match = document.cookie.match(new RegExp(name + '=([^;]+)'));
if (match) return match[1];
}
window._delCookie = function(name) {
document.cookie = name + '=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT'
}
window._setCookie = function(name,value,days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
var _searchq = window._getCookie('_searchq')
var _searchq1 = window._delCookie('_searchq')
//console.log("_searchq1", _searchq1);
var urlvars = decodeURI(location.search.substring(1))
if(urlvars && urlvars.indexOf('__evid')>=0 && urlvars.indexOf('__varid')>=0){
var vars = urlvars.split("&").map(function (kv) {
return kv.split("=", 2);
});
console.log("vars",vars)
var evidPos = vars.filter(function(itm){return itm[0]=='__evid'});
var varidPos = vars.filter(function(itm){return itm[0]=='__varid'});
console.log("evidPos,varidPos",evidPos,varidPos)
if(evidPos&&varidPos){
console.log("evidPos[0][1]",evidPos[0][1])
setTimeout(function(){abevent(evidPos[0][1])},1000)
}
}
function processLangChanges(_urlvars){
if(_urlvars && _urlvars.indexOf('_plang')>=0){
var vars = urlvars.split("&").map(function (kv) {
return kv.split("=", 2);
});
var langQ = vars.filter(function(itm){return itm[0]=='_plang'});
if(langQ){
console.log("langQ",langQ)
var __now = new Date();
__now.setTime( __now.getTime() + 1 * 1000 * 60*60 * 24 * 365 * 10 );
document.cookie = "_plang="+langQ[0][1]+"; path=/; expires="+__now.toUTCString()
}
}
}
processLangChanges(urlvars)
function process_utm_source(_urlvars){
if(_urlvars && _urlvars.indexOf('utm_source')>=0){
var vars = urlvars.split("&").map(function (kv) {
return kv.split("=", 2);
});
var source = vars.filter(function(itm){return itm[0]=='utm_source'});
var medium = vars.filter(function(itm){return itm[0]=='utm_medium'});
var campaign = vars.filter(function(itm){return itm[0]=='utm_campaign'});
if(source.length>0){
document.cookie = "utm_source="+source[0][1]+"; path=/; expires="+((new Date()).setTime((new Date()).getTime()+(90*24*60*60*1000)))
}
if(medium.length>0){
console.log("medium",medium)
document.cookie = "utm_medium="+medium[0][1]+"; path=/; expires="+((new Date()).setTime((new Date()).getTime()+(90*24*60*60*1000)))
}
if(campaign.length>0){
document.cookie = "utm_campaign="+campaign[0][1]+"; path=/; expires="+((new Date()).setTime((new Date()).getTime()+(90*24*60*60*1000)))
}
}
}
process_utm_source(urlvars)
var r = encodeURIComponent(document.referrer)
dtMeta = {flow:_FLOWID, pid:_PID, pvid:_PVID, ref:r, fpid:null, path:window.location.pathname, urlvars:urlvars, q:_searchq}
try{
var langFC = window._getCookie('_plang')
if(langFC && langFC!='en'){
dtMeta['lang'] = langFC
}
}
catch(e){}
//console.log("deleting cookie");
var mapInfo = [dtMeta, {}]
_stats('page',mapInfo)
function fcmm(eventId){
//console.log('FCMM:', eventId)
}
// Remove Parameter from Address Bar
function _remsp(){
if (window.parent.location.href.match(/stag=/)){
if (typeof (history.pushState) != "undefined") {
var obj = { Title: document.title, Url: window.parent.location.pathname };
history.replaceState(obj, obj.Title, obj.Url);
} else {
window.parent.location = window.parent.location.pathname;
}
}
}
function postcall(url, params, cb){
//console.log("postcall");
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.open('POST', url);
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
try{
var langFC = window._getCookie('_plang')
if(langFC && langFC!='en'){
if(!params){params={}}
params['lang'] = langFC
}
}
catch(e){}
xhr.send(JSON.stringify(params));
xhr.onload = function() {
//console.log(xhr.status === 200)
if(xhr.status===200){
var json = JSON.parse(xhr.responseText)
//console.log("xhr.response", json);
cb(json)
}
else{
cb(null)
}
};
}
function formatParams( params ){
if(!params){return ""}
return "?" + Object
.keys(params)
.map(function(key){
return key+"="+encodeURIComponent(params[key])
})
.join("&")
}
function getcall(endpoint, params, cb){
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
try{
var langFC = window._getCookie('_plang')
if(langFC && langFC!='en'){
if(!params){params={}}
params['lang'] = langFC
}
}
catch(e){}
var url = endpoint + formatParams(params)
xhr.open('GET', url);
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
xhr.send();
xhr.onload = function() {
if(xhr.status===200){
var items = JSON.parse(xhr.responseText)
cb(items)
}
else{
cb(null)
}
};
}
function formToJSON( elem ) {
let output = {};
new FormData( elem ).forEach(
( value, key ) => {
if ( Object.prototype.hasOwnProperty.call( output, key ) ) {
let current = output[ key ];
if ( !Array.isArray( current ) ) {
current = output[ key ] = [ current ];
}
current.push( value ); // Add the new value to the array.
} else {
output[ key ] = value;
}
}
);
return output;
}
function _submitInlineForm(formObj, formId){
if(!formObj){
formObj = document.getElementById(formId);
if(!formObj){
console.log("no form")
return
}
}
if (formObj.checkValidity() === false) {
formObj.classList.add('was-validated');
if(document.getElementById(formId+"ResponseError")){
document.getElementById(formId+"ResponseError").style.display = "block"
document.getElementById(formId+"ResponseError").classList.add("error");
if(!document.getElementById(formId+"ResponseError").innerHTML){
document.getElementById(formId+"ResponseError").innerHTML="Please complete all required fields"
}
}
return false;
}
formObj.classList.add('was-validated');
let fd = new FormData(formObj);
var data = {}
//this does not work inIE
for (let [key, prop] of fd) {
data[key] = prop;
}
//var data = formToJSON(formObj)
// for(var k in fd){
// var input = fd[k];
// if (!input || !input.name || !input.value) continue;
// console.log("--input ", input.name, input.value)
// data[input.name] = input.value;
// }
if(typeof window[formId+"__preFormProcess"] != 'undefined'){
console.log("_preFormProcess found and preprocessing of data is on")
data = window[formId+"__preFormProcess"](data)
}
else{
console.log("_preFormProcess is not found. no further processing done on data")
}
var url = formObj.action
console.log("postingurl", url)
postcall(url, data, function(json) {
console.log("json response", json)
if(json=='Success'){
if(document.getElementById(formId+"ResponseError")){
document.getElementById(formId+"ResponseError").style.display = "none"
}
if(document.getElementById(formId+"Cont")){
document.getElementById(formId+"Cont").style.display = "none"
}
if(document.getElementById(formId+"Response")){
document.getElementById(formId+"Response").classList.add("valid");
document.getElementById(formId+"Response").style.display = "block"
if(!document.getElementById(formId+"Response").innerHTML){
document.getElementById(formId+"Response").innerHTML="Thank you for your submitting the form."
}
if(typeof window[formId+"_postFormProcess"] != 'undefined'){
console.log("_postFormProcess found and postprocessing of data/results is on")
var targetDiv = document.getElementById(formId+"Response")
window[formId+"_postFormProcess"](targetDiv, data)
}
else{
console.log("_postFormProcess is not found. no further postprocessing done on data")
}
}
}
else{
if(document.getElementById(formId+"ResponseError")){
document.getElementById(formId+"ResponseError").style.display = "block"
document.getElementById(formId+"ResponseError").classList.add("error");
if(!document.getElementById(formId+"ResponseError").innerHTML){
document.getElementById(formId+"ResponseError").innerHTML="There was error processing the form<br>"+(json['message']?json['message']:json)
}
}
if(document.getElementById(formId+"Response")){
//document.getElementById(formId+"Response").style.display = "block"
//document.getElementById(formId+"Response").classList.add("error");
//document.getElementById(formId+"Response").innerHTML="There was error processing the form<br>"+(json['message']?json['message']:json)
}
}
});
return false;
}
</script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-76599161-1', 'auto');
//ga('require', 'GTM-TR3F64Z');
ga('send', 'pageview');
</script>
<script>(function (w, n, d, p, a, m) {
w['BrandchatQ'] = { u: 'https://wplugin.brandchat.co/#/ask/brandchat/28300998-ccd0-4ef3-8e9b-f96a2a99bc0b', bc: '#3898ec', tc: '#ffffff', i: 'Chat with us', a: 'N', css___:'https://chatbots.brandchat.co/libs/css-chatbots-staging.css' };
a = n.createElement(d),
m = n.getElementsByTagName(d)[0];
a.async = 1;
a.src = p;
m.parentNode.insertBefore(a, m);
})(window, document, 'script', 'https://wplugin.brandchat.co/libs/v2/brandchat-plugin.js');
</script>
</body>
</html><!--from cache in 1.982381ms -->