Install live chat on another website

WhatsApp

How do I add live chat to my other website?

Live chat works on your Mahjoz store automatically. For your other websites, add the site to the list and paste the code on it.

  1. Turn live chat on first (the code appears after the first time it's turned on).
  2. Open Inbox from the sidebar, then Channels, then Install on another website on the Live chat card.
  3. Under Allowed websites, type the site name only, without https or a path (like example.com), and click Add. The www version is added automatically.
  4. Under Install code, click Copy code.
  5. Paste the code on your website once, somewhere that appears on every page. Where do I paste it? on the same page explains an HTML website (before the ‎‎ tag), WordPress and Wix.

You can add up to 10 websites; your store and its domain are always allowed. A website that isn't on the list won't show the button, even if someone copies the code. Each website shows its Last seen time, and removing a website hides the button there while its past conversations stay in the inbox.

If the button doesn't show: check that the name on the list matches the site you opened, that live chat is on, and refresh the page.

Control it from your site (for developers): the same tab has a Control it from your site card. Its code adds one line before the install code and starts with the button hidden; your site then drives the chat with commands such as MahjozChat('open') to open it from a button on your page, MahjozChat('hide') and MahjozChat('show') for the floating button, MahjozChat('reset') when the customer signs out, and MahjozChat('on', 'message', fn) to tell your page when a reply arrives. The table in the card explains each one.

Pass the signed-in customer: if your site has sign-in, your server signs the customer's details (name, phone, email and your own customer reference) with the Secret key, and the page passes them with MahjozChat('identify', …). With a valid signature we don't ask for their details, and we link them to the customer with the same phone or email. The card has a signing example. Only the account owner sees the key, with Show, Copy and New key. Keep it on your server, never in the page's code. New key stops the current key at once, so put the new one on your server afterwards. A wrong signature, or one older than 24 hours, doesn't turn the visitor away, but their details are treated as typed by them, unverified. Your Mahjoz store needs none of this.

Sell anything.Run everything.Grow every customer.

  1. WebsiteFor your customers

  2. DashboardFor you

  3. Staff appFor your team

  4. POSFor your team

  5. Customer appFor your customers

Run your whole business on one platform. Talk to our sales team and we'll show you Mahjoz working the way it would in your business.

  • Free demo
  • No commitment
  • No commission on your sales

+966 58 150 4066 · info@mahjoz.io