Where is HubSpot embed code?

If the embed code is installed, you will see a line of code that matches the code you typed in. The line of code will include your HubSpot account ID.

The HubSpot embed code is a piece of code that you can use to add HubSpot features to your website or blog. For example, you can use the embed code to add a HubSpot form, a HubSpot chat widget, or a HubSpot lead capture form to your website.

To find the HubSpot embed code, you can follow these steps:

  1. Go to your HubSpot account.
  2. Click on the Marketing tab.
  3. Click on Lead Capture.
  4. Click on Forms.
  5. Click on the name of the form that you want to embed.
  6. In the Embed code section, copy the code.

You can then paste the embed code into the HTML of your website or blog.

Here are some additional tips for using the HubSpot embed code:

  • Make sure to copy the entire embed code, including the opening and closing tags.
  • Paste the embed code into the <head> section of your website's HTML.
  • If you are embedding a form, make sure that the form is enabled.
  • You can test the embed code by opening a page on your website in your browser and right-clicking anywhere on the page. In the dropdown menu, select Inspect Element or Inspect. A toolbar will appear at the bottom or side of your screen.

In the toolbar, click on the Console tab. Then, type in the following code:

Code snippet
document.querySelector('script[src*="hubspot.com/js/embed/"])
Use code with caution. Learn more

If the embed code is installed, you will see a line of code that matches the code you typed in. The line of code will include your HubSpot account ID.

If you do not see a line of code that matches the code you typed in, then the embed code is not installed correctly. You can try copying and pasting the code again, or you can contact HubSpot support for help.