> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.trustmary.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to add a Review Widget to your HubSpot CMS website


# Introduction

In this article we'll be taking a look at on how to embed Trustmary's reviews and surveys to an HubSpot CMS website. If you're looking for instructions on the same subject but for a different platform, check out other [articles](https://help.trustmary.com/en/category/add-reviews-to-your-site-11e8b7g/) in our Help documentation.  

# Getting the embed code

${youtube}[How to find your widget's embed code](xge6pdstY8Q)
### What to do with the code snippet?

For the widgets to work, you'll need to copy the code from Trustmary to your website, either directly to the source code, or through your website editor. The website editors usually have an element called code, HTML, embed or similar that can run the code.  
  
For more information on embedding to different platforms, check out our [help article collection](https://help.trustmary.com/en/category/add-reviews-to-your-site-11e8b7g/) on the topic.  

# How to embed the code in HubSpot CMS

Start by navigating to **Website** under **Marketing**. From there, select a page into which you want to embed your code. The page can be edited by clicking the **Edit** button or the title.

In the editor, look for an element in the pane on the left called **Rich Text**. This is a general purpose text element that also understands code. Go ahead and drag the element from the pane into its place on the page.

After the element is dropped into its place and is active on the editor, look for a drop-down menu called **Advanced** in the top right corner. From there, click on **Source code** to jump into the code view.

Here you'll find a text box with the title **Edit source code**. This is where you can paste the embed code you copied before. After the code is pasted, click **Save Changes** to save the changes.

You're almost there! Now just check the embed works as intended by clicking the **Preview** button in the top right in the editor, and after that click **Publish** to save the changes.

![](https://tawk.link/63c911a247425128790e845b/kb/attachments/Q9ETSsd5YF.png)