​Trustpilot's Magento 2 plugin - download, install and configure it

This feature is included in the Free plan

Get started now

Trustpilot’s Magento plugin helps you automate the review collection process, add multiple TrustBox widgets, and invite past customers to write reviews.

Learn how to download, install, and configure the plugin to start getting the benefits of Trustpilot on your eCommerce site.

Note: This plugin is for companies who use the Magento eCommerce platform. Not you? Go to our other integrations. Keep in mind that if you use other automatic invitation methods, you'll have to disable them to avoid sending duplicate invitations to customers.

Key facts about Trustpilot's Magento 2 plugin

  • Automate your review requests — a new order automatically triggers an email to your customer that asks them to review your company on Trustpilot.
  • Easily send invitations to your past customers.
  • Add multiple TrustBox widgets to your website using the plugin.
  • The Magento 2 plugin supports Magento versions: 2.1, 2.2 and 2.3.

Note: This integration isn't compatible with Internet Explorer.

Set up the Magento 2 plugin

You have two options to connect your Magento 2 web store with Trustpilot:

  • Get the Magento 2 extension from the Magento Marketplace.
  • Download and install the plugin using Composer.

Magento 2 - Install the plugin in your webshop

Install the plugin from the Magento Marketplace

Here's how you install Trustpilot's plugin in Magento Marketplace.

  1. Go to the Magento Marketplace, search for the Trustpilot Reviews M2 extension, and click Add to Cart.
  2. Click the shopping cart icon in the upper right-hand corner and click the Proceed to Checkout button.
  3. If required, register or sign in to your Magento Marketplace account and complete the checkout by clicking Place Order
  4. On the order confirmation page, click Install.
  5. On the My Access Keys page, choose Create a New Access Key to create a new key. Set a name to identify the key pair, and then copy the newly generated private and public keys.
  6. Log in to your Magento Admin Panel.
  7. Click System > Web Setup Wizard > Extension Manager or Component Manager.
  8. If you haven’t connected your store to Magento Marketplace yet, click Sign In to connect. You’ll see two empty fields where you need to paste the private and public keys you copied earlier.
  9. Select Refresh/Sync to update the list of available extensions.
  10. Click Review and Install.
  11. Find the Trustpilot extension in the list and click Install.
  12. Follow the Magento Wizard: perform the readiness check, create a backup, and finish the installation.
  13. Navigate back to your web store Magento Admin and click Stores > Configuration.
  14. Change the configuration scope from Default Config to Main Website or Store View.
  15. Scroll down to find Trustpilot, expand the panel, and click General.
  16. Scroll back to the top and paste the integration key copied from Trustpilot Business.
  17. Click the Save Config button.

Download and install the plugin via Composer

You need to have technical knowledge and access to the command line interface (terminal) of your webshop server to install the Trustpilot plugin in your Magento 2 platform. You can use Composer to install the plugin.

Important: Your webshop will be inaccessible during the 5-15 minute installation process. We strongly recommend that you install the plugin when your webshop isn't busy. Make sure to backup your shop beforehand.

Log in to your Magento server using SSH (Secure Shell) and run the following commands:

  1. Create a backup by navigating to the root directory of your Magento installation and executing the command below. Please note that your website will be inaccessible during the backup process. php bin/magento setup:backup --code --db --media
  2. Enable the maintenance mode: php bin/magento maintenance:enable
  3. Download and install the Trustpilot plugin using Composer: composer require “trustpilot/module-reviews”
  4. If this is the first time you've installed a plugin using Composer, Magento will ask you to provide your Magento Marketplace account credentials. To find your account information, go to https://marketplace.magento.com > My profile > Access Keys > Create A New Access Key. Your public key is your username, while your private key is your password.
  5. Enable the Trustpilot plugin: php bin/magento module:enable Trustpilot_Reviews --clear-static-content
  6. Update the database schema. Please note that this command is global and enables all the Magento plugins that you have installed, so please proceed cautiously. php bin/magento setup:upgrade
  7. Execute the compile command. This command is only required in production mode: php bin/magento setup:di:compile
  8. Deploy static content. This command is only required in production mode: php bin/magento setup:static-content:deploy
  9. Disable maintenance mode: php bin/magento maintenance:disable

Enter the integration key

Now that you’ve installed the Trustpilot plugin, log in to your Magento Admin page and provide the integration key to complete the integration process.

  1. Go to Trustpilot Business > Integrations > Magento 2 and, under Your integration key, copy the integration key.
  2. Navigate back to Magento Admin, then click Stores > Configuration.
  3. Change the store view from Default Config to Main Website (or any of your other websites).
  4. Click on Trustpilot > General and paste the integration key that you copied from Trustpilot Business.
  5. Click the Save Config button.

Configure the Magento 2 plugin

Once you've installed the plugin, the Trustpilot tab is available in your Admin Panel. You may need to use your Trustpilot Business credentials to log in.

  • Review the legal terms, select I understand and accept the above , then click the Confirm button.

Done! You've successfully integrated with Trustpilot and can start inviting your customers to leave reviews.

You can:

  • Set up or change your email information.
  • Invite past customers to write reviews.
  • Add multiple TrustBox widgets using the plugin.

Set up your email information

Go to Invitations and enter your email information:

  • Sender Name – The sender information that appears in your customer's inbox when they receive your review request. The default Sender Email is the noreply.invitations@trustpilot.
  • Reply-to Email – The email address you want your customers to use if they respond to your email.
  • Trustpilot website – The Trustpilot landing page where your customers will write their review. Trustpilot has separate websites locales, e.g., de.trustpilot.com is the Trustpilot website for Germany.
  • Send Delay – An order from your Magento web store automatically triggers an email to your customer - set the number of days you'd like us to wait before the email is actually sent. The maximum delay is 90 days.

Configure the Invitation trigger

Configure what triggers review invitations to be sent to your customers on the General tab.

  • Choose Order confirmed to invite your customers when Magento is processing your order.
  • Choose Order completed to invite customers when the order is complete.

Click the Save changes button.

Include product review invitations

The Magento plugin allows you to send product review invitations if you use Trustpilot's product reviews feature.

Enable the Product review invitations toggle to start getting product reviews.

Once you have enabled product reviews, you have to let us know where you are saving your product stock keeping unit (SKU). You do this by selecting a SKU field from the drop-down menu. Note that you have to select one of the available SKU fields to be able to send product invitations.

You can also select product GTIN and MPN fields from the relevant drop-down menus, but these are optional. The SKU field is the one that will always be required for Trustpilot to successfully create product review invitation emails to your customers.

Once you're done, click the Save changes button to save your configuration.

You can also configure the GTIN and MPN field to let Trustpilot know where you are saving this information on your Magento platform. Click the Save changes button when you're done setting up the configuration.

Invite past customers to write reviews

The Trustpilot plugin allows you to invite past customers who placed orders between the last week and three months.

  • Select a time period and click the Sync up orders button to sync up your past orders with Trustpilot's invitation system.

Summary of synced orders

Next, you'll see a summary of your synced orders, so you'll know which ones synced up successfully with Trustpilot and which ones failed.

At the bottom of the page, you'll see a list of failed orders with more details. To attempt to sync up the failed orders again, click the Re-sync button.

Add a TrustBox using the plugin

You can add multiple TrustBox widgets to your web pages using your Magento plugin.

  1. To preview a TrustBox, go to your Magento Admin page and click the TrustBox tab in the top menu.
  2. Select the TrustBox you’d like to preview, then drag and drop it on your on-site display. You can rearrange it wherever you want.
  3. To publish the TrustBox on your site, click Publish Changes.

You can also configure these TrustBox attributes:

  • Page – Place TrustBoxes on your landing page, category page, or product page. If you prefer another page, simply enter the specific web address.
  • Position – Select where on the page you want the TrustBox to appear.
  • Horizontal offset – Offset from the left and right side.
  • Vertical offset – Offset from the top and bottom.

If you choose the Product TrustBox, your data-sku attribute updates automatically. Remember to add it to your product page.

Keep in mind that we currently don't have a sandbox environment available for testing purposes.

Trustpilot is not liable for any links to third party websites in this article, including the content on any other websites linked to from this article.