How to Customize Default Country Code in Qiscus Widget?

  • Updated

You can follow up this steps:

  1. Activate `Phone number` as customer identifier in Widget Builder.
  2. Copy the widget code in the Code Snippet, then paste it on your website.
  3. Add this extra script lines inside the <head>...</head> section of your website
<script>
//ADD qismoConfig TO CUSTOMIZE DEFAULT COUNTRY CODE
qismoConfig = {
customerIdentifierInputType: 'phone',
initialCountryCode: 'your-country-code',
}

document.addEventListener('DOMContentLoaded', function() {
var s,t; s = document.createElement('script'); s.type = 'text/javascript';
s.src = 'https://s3-ap-southeast-1.amazonaws.com/qiscus-sdk/public/qismo/qismo-v2.js'; s.async = true;
s.onload = s.onreadystatechange = function() { new Qismo("your-app-id"); }
t = document.getElementsByTagName('script')[0]; t.parentNode.insertBefore(s, t);
});
</script>

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.