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.
- Go to the Magento Marketplace, search for the Trustpilot Reviews M2 extension, and click Add to Cart.
- Click the shopping cart icon in the upper right-hand corner and click the Proceed to Checkout button.
- If required, register or sign in to your Magento Marketplace account and complete the checkout by clicking Place Order.
- On the order confirmation page, click Install.
- 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.
- Log in to your Magento Admin Panel.
- Click System > Web Setup Wizard > Extension Manager or Component Manager.
- 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.
- Select Refresh/Sync to update the list of available extensions.
- Click Review and Install.
- Find the Trustpilot extension in the list and click Install.
- Follow the Magento Wizard: perform the readiness check, create a backup, and finish the installation.
- Navigate back to your web store Magento Admin and click Stores > Configuration.
- Change the configuration scope from Default Config to Main Website or Store View.
- Scroll down to find Trustpilot, expand the panel, and click General.
- Scroll back to the top and paste the integration key copied from Trustpilot Business.
- 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:
- 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
- Enable the maintenance mode:
php bin/magento maintenance:enable
- Download and install the Trustpilot plugin using Composer:
composer require “trustpilot/module-reviews”
- 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.
- Enable the Trustpilot plugin:
php bin/magento module:enable Trustpilot_Reviews --clear-static-content
- 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
- Execute the compile command. This command is only required in production mode:
php bin/magento setup:di:compile
- Deploy static content. This command is only required in production mode:
php bin/magento setup:static-content:deploy
- 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.
- Go to Trustpilot Business > Integrations > Magento 2 and, under Your integration key, copy the integration key.
- Navigate back to Magento Admin, then click Stores > Configuration.
- Change the store view from Default Config to Main Website (or any of your other websites).
- Click on Trustpilot > General and paste the integration key that you copied from Trustpilot Business.
- 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.
- 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.
- To preview a TrustBox, go to your Magento Admin page and click the TrustBox tab in the top menu.
- 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.
- 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.