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 in our Help documentation.
Getting the embed code
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 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.

Updated on: 10/03/2025
Thank you!