Documentation
Feedback
Guides

Trustpilot

This is a Trustpilot first-party integration app. The solution provides a review platform for your store.

Configuration

  1. Install the vtex.trustpilot app in the VTEX account in which you are working;
  2. In your VTEX account's admin, open the App section and select the Trustpilot App box;
  3. Fill in your integration key, provided by Trustpilot, in the fields;
  4. Save your changes.

Using the Trustpilot's Widget component

The trustpilot app also enables Truspilot's widget component to be added to your store theme by adding the trustpilot-micro-review-count block in a template of your choosing.

  1. Using a Developer workspace, open your store's theme directory in your code editor and add the shop-review-interfaces app as a dependency in the manifest.json file:

_10
"dependencies": {
_10
+ "vtex.shop-review-interfaces": "0.x"
_10
}

  1. Add the shop-review-badge block, exported by the shop-review-interfaces, in a template and block of your choosing, such as the Footer;
  2. Save your changes and link the store theme app;
  3. Once your changes linked, access the admin's Site Editor using the same Developer workspace ({workspaceName}-{accountName}.myvtex.com/admin/cms/site-editor) and look for the Trustpilot - Generic Widget block;
  4. When editing the block, add the widget's template id and business unit id value provided by the Trustpilot's widget;
  5. Save your changes;
  6. Access your store's website using the Developer workspace to check out the new component. If no more changes are desired, repeat the steps above in a Production workspace and then promote it to Master.

The integration key must be provided by Trustpilot.

The trustpilot app also enables Truspilot's widgets to be added to your store theme by inserting the shop-review-badge interface in your layout and then using the trustpilot-widget block in a template of your choosing.

InterfaceBlockDescription
shop-review-badgetrustpilot-widgetAdds a Trustpilot widget in your store.

Block without badge

To use widget without shop-review-badge to landing pages, for example, you can use trustpilot-widget. Therefore, you need to add the following in the manifest.json file.


_10
"peerDependencies": {
_10
+ "vtex.trustpilot": "1.x"
_10
}

trustpilot-widget as props


_14
{
_14
"trustpilot-widget#home":{
_14
"title":"Widget TrustPilot",
_14
"props":{
_14
"width":"100%",
_14
"height":"240px",
_14
"theme":"light",
_14
"stars":"4,5",
_14
"tag":"cart",
_14
"businessUnitId":"597a23fwffdsfe05a793fe",
_14
"templateId":"5419b6a8b0d04a076446a9ad"
_14
}
_14
}
_14
}

Prop nameTypeDescriptionDefault value
widthstringChange width of templateundefined
heightstringChange height of templateundefined
themestringChange theme of template light or darkundefined
starsstringChange stars stock of templateundefined
tagstringChange tag of template. More info hereundefined
businessUnitIdstringSet your business codeundefined
templateIdstringSet your template ID5419b6a8b0d04a076446a9ad
Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page