In this article we will be taking a look at on how to embed Trustmary's testimonials and surveys to a website when using Drupal as the content management system. If you're looking for instructions on the same subject but for a different platform, please refer to the other articles in our Help documentation's Integrations section.
Getting the embed code
First of all, you will need to copy the embed code for the inpage embed or the survey you're embedding from Trustmary.
For the reviews or testimonials, the code can be found by choosing the embed in question and opening it from the Embeds page, which can be seen on the image below.
The embed code will be shown on the embeds front page. The code can be copied by clicking the Copy embed code button, or manually selecting and copying it.
For surveys, the embed code can be found in the Collect tab of the survey in question. Once there, scroll down to the end of the page and you will see a section titled Embed to Website. Click Copy under the code snippet and you're ready to move to the next stage.
Embedding the code in Drupal
Start by opening Drupal and clicking on a section on the page you want to edit, marked with a pencil icon and selecting edit in the drop-down menu. Alternatively, you can create a new page through the Content tab and by clicking the Add content button.
Once in the editing view, you are greeted with a text box. First enter a description for the block. Then, select Full HTML as the text format near the bottom of the text box and click the Source button near the top of the text box. Now you can paste the embed code copied previously into the text box. Don't forget to click Save once you're ready!