Add a live chat service to your site
On this page
Live chat gives a visitor real-time contact with a support team member. Providers differ in branding and features, but they integrate with a StoreConnect store the same way: a script that loads at the end of every page.
Before you start
- Sign up to a live chat service and copy the embed code it gives you.
- You need edit access to the Store record for the store you are changing.
Install the live chat code
A live chat script has to run after the page content exists, so it belongs in the body
content block, which StoreConnect inserts just before the closing </body> tag of every
page.
- Go to the Content Blocks list and select New (
s_c__Content_Block__c). - Set the Template to No added styling, so the block adds no markup of its own around your script.
- Give it a name such as “Body Content”.
- Paste your provider’s embed code into the Content field.
- Select Save.
- Open your store’s Store record and point it at the block:
- Under the Global Content section, select the Body Content field
(
s_c__Body_Content_Block_Id__c). - Search for your body content block.
- Select Save.
- Under the Global Content section, select the Body Content field
(
The chat widget now loads on every page of your store.
Body Content takes a single content block, so if you are installing other custom code at the end of the body, add it to this same block rather than creating a second one. For the other ways to insert custom code, see Adding custom JavaScript, CSS and head content.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.