Where do I put the messages script?

Last updated: April 12, 2017

Available For:

Marketing: N/A
Sales: Professional

In Beta

When setting up messages, you will be required to place a small JavaScript embed code/script onto your website.

This embed script can be found by going through the following steps:

  • From your HubSpot Sales account, navigate to Sales Tools > Messages.
  • Within the messages tool, hover over the message you'd like to get the embed script for > click Edit.

  • From the left side menu, click Install code snippet. From here, you can copy the embed code or email it to your web developer for installation.

Installing the code snippet

Embed this JavaScript snippet immediately before the closing body tag (</body>) on any page you want to display the messages widget. If you are a marketing customer using the HubSpot COS, you can install it in your Site Footer HTML.

If you have your website hosted on another platform, please check the following article for a walkthrough of exactly where to place this embed code: How to install the tracking code 

Free HubSpot Sales Software Training Learn HubSpot CRM & HubSpot Sales Tools from the experts at HubSpot Academy.