In this article we will be taking a look at on how to embed Trustmary's testimonials and surveys to a website when using Wix 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 step.
Embedding the code in Wix
Now that you have the embed code, navigate to your Wix Dashboard and select the website to edit by clicking Edit Site.
Note that this guide is written from the perspective of the Editor mode. You can switch to Editor mode the ADI mode, or select it when creating a new site.
Once you're in the editor, click on the plus icon in the toolbar on the left, or any other plus icon on your website's preview. Here you can add content and sections to your site. Click on the Embed category in the list and locate Custom Embeds in the sub-menu. From Custom Embeds, select Embed a Widget to open the HTML element in which the embed code can be pasted into.
Now that the HTML element is added to your site, click Enter Code near the top edge of the element. This opens up the element's settings and a text box, in which you can paste the embed code copied before. Next just click Update, and you're pretty much all set.
The only thing left now is to verify that the embedding works as intended. This can be easily done by first previewing the page, and then publishing the changes when everything seems allright.
Once everything is up and running, your embed should look and behave something like this:
Order confirmation ("thank you") page
Finding the order confirmation page in WIx is very straightforward. Start by finding the Thank you page in the page drop-down menu.
Once on the Thank you page, click on the plus icon in the toolbar on the left to add a HTML element for your embed. See the picture below for all the steps.
When you have the HTML element on your page, you can move and shape it to your liking by dragging from the center and edges respectively. After the element is in its place, click on the Enter code button near the top edge of the element.
This opens up a window into which you can paste the embed code you copied earlier. When the code is in the box, click Update near the bottom of the window to apply the changes.
After this everything is pretty much all set. You can verify that the embed works as intended by clicking Preview in the top right corner of the editor, and if everything checks out, Publish the changes made.