Hubspot Live Chat

Hi, I would like to add a Hubspot Live Chat to every page of my website. Hubspot have provided the following code:

<!-- Start of HubSpot Embed Code -->
  <script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/5840221.js"></script>
<!-- End of HubSpot Embed Code -->

Can you please advise where I need to place this code to make it work?

Thanks in advance.

Hello Bridee,

Thanks for writing in!

You can add the Hubspot script in the child theme. Please take a look at following thread to setup:

If you would like to go with a 3rd party plugin then please take a look at following plugin:

and add your Hubspot code in Scripts in Footer

Thanks.

Hi Prasant, I added the plugin and then added the code to the footer as instructed however nothing has happened?

I also added the child theme but I have no idea where to find that functions file you mentioned?

Hello Bridee,

Thanks for updating the thread.

You can get the child theme function.php file under Appearance > Theme Editor > Theme Function (functions.php).

Thanks.

Perfect thank you so much finally got it working :slight_smile:

You’re welcome!
We really appreciate for letting us know that it has worked for you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.