Add MyLiveChat to your Drupal site
MyLiveChat live chat for Drupal lets you collaborate with your Drupal website visitors.
It is fully customizable, pretty light-weight, easy to install and requires just
a free account at MyLiveChat to complete the integration with Drupal websites.
MyLiveChat helps your team answer visitors quickly, collect offline messages, and keep support conversations organized.
It allows you to live chat with website visitors, see helpful visitor context, and keep every conversation available for follow-up.
Get your chat code
Step 1. Custom block library
Log on as an administrator and open the Manage-->Extend panel, then click on the "Configure" link of the Block. Switch to "Custom block library" tab and click on the "+Add custom block" button.
Step 2. Add custom block
Fill the "Block description" with any name you need and select "Full HTML" option from "Text format" dropdown list, then click on the "Source" button from the editor toolbar.
Get your chat code from mylivechat.com/dashboard/deployment.ascx. Paste the chat code into the editor and click Save.
Step 3. Activate "MyLiveChat" block
Return to the Block Layout tab and click the Place block button for the Header region. Select the MyLiveChat block you just created and save.
Step 4. Test "MyLiveChat" now
Check your site — the live chat button should now appear on your Drupal pages.
Check that live chat is working
Save and place the block, then open your site in a private browsing window. A private window matters: as a signed-in
administrator you may see a different version of the page than your visitors do.
- Look for the chat launcher on the page. If it is missing, view the page source and
search for mylivechat to confirm the code is really being served.
- Start a chat as a visitor and send a test message.
- Sign in to the web console and confirm the message arrives
and that you can reply.
- Close the chat and check the transcript is saved, so you know follow-up will work.
If your site caches pages, clear the cache before deciding something is broken. A cached
copy of the old page is the single most common reason a correct installation looks like a
failed one.
Common Drupal setup mistakes
- The text format stripped the code. Drupal's filtered formats remove script tags. The block must use Full HTML, and you must paste the code through the editor's Source view, or the snippet is silently discarded on save.
- The block is not placed in a region. A saved custom block still has to be placed in a theme region and configured to show on all pages.
- Chat looks offline to everyone. The widget shows an offline form when no
agent is signed in. That is working as intended - set your hours and your offline
message so the page tells visitors when to expect a reply.
Make the chat window fit your site
Colours, position, language and the pre-chat form are all set in your MyLiveChat
dashboard, not in the Drupal code, so you can change them without touching your site again.
See customization options for what can be
changed, and visitor monitoring if you want to
see which page a visitor is on before you reply.
Related guides
New to live chat? Start with
how to add live chat to your
website and the
live chat launch checklist.
Also useful: Where to place the chat widget.
Also useful: Live chat best practices.
If you are worried about page speed, see
does live chat slow down your
website.
What's next?
After setup, sign in to the web console to answer visitors from your browser. You can also use the desktop app from the download page if your team prefers it.
Drupal live chat FAQ
Which Drupal versions does this work with?
The custom block approach works on any Drupal version that has the custom block library, because the block simply holds your MyLiveChat code.
Do I need to place the block in a specific region?
Place it in a region that appears on every page, such as a footer region. The widget positions itself, so the region only decides where the code is served, not where the launcher appears.
Will it slow down my site?
The chat code loads asynchronously, so it does not block your page from rendering. If you want to check that for yourself rather than take our word for it, measure your own pages before and after with your usual speed tool.
Is it really free?
Yes. One agent, unlimited chats and unlimited websites are free forever, with no credit card required.
Any questions?
If anything is unclear, contact our support team from the chat button on this page or visit the Support page. We can help you choose the right setup path.