How To Integrate Trustpilot Auto Email Invitation For Service Rating At The End Of Order

How To Integrate Trustpilot Auto Email Invitation For Service Rating At The End Of Order

trustpilot invitation email banner

Trustpilot
is a leading customer reviews platform, offering a very powerful review tools for companies of every size to get more reviews, promote their feedback, engage with customers, and analyze the results to improve.

Keeping your customers on your site to write a review after they purchase products on your site can be better than asking them to click elsewhere.

This helpnote enables merchants to set up automated service review invitations to customers after they place or receive an order. Invite past customers to leave a review to boost review counts quickly.

The steps below will guide you on how to set up the automatic Trustpilot invitation emails:

1) Go to your Trustpilot page at: https://businessapp.b2b.trustpilot.com/integrations/ecommerce/javascript

2) Copy code there eg:

<script>
(function(w,d,s,r,n){w.TrustpilotObject=n;w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)};
a=d.createElement(s);a.async=1;a.src=r;a.type='text/java'+s;f=d.getElementsByTagName(s)[0];
f.parentNode.insertBefore(a,f)})(window,document,'script', 'https://invitejs.trustpilot.com/tp.min.js', 'tp');
tp('register', 'xxxxxxxxxxxxx');
</script>

Note: xxxxxxxxxxxxx is to be replaced with your integration key.

3) Open file shoppage_header.htm located in templates/default folder.

4) Locate </head> and before it, please paste the js code.

5) Save the file and upload back to your site.

6) Then back to the Trustpilot page again https://businessapp.b2b.trustpilot.com/integrations/ecommerce/javascript

Click Next button.

7) In the "Enter your domain to verify" please enter your domain eg www.example.com and click Verify.

8) You do not need to continue the next stage in the page "3. Finish setting up the integration". Just leave it and do not click copy code.

9) Open file shopthanks.asp using located in the root of your VPCart site.

10) Locate this code:

MailToSuppliers

11) Below that please insert this:

%>
<script>
document.addEventListener('DOMContentLoaded', function() {
const trustpilot_invitation = {
recipientEmail: '<%=rsorder("oemail")%>',
recipientName: '<%=rsorder("ofirstname")%>',
referenceId: '<%=rsorder("orderid")%>',
source: 'InvitationScript',
};
tp('createInvitation', trustpilot_invitation);
});
</script>
<%

12) Save the file and upload to your site.

13) You are done.

After the above setup, if customers order items on your VPCart site and upon success payment and landed on shopthanks.asp, TrustPilot will add invitation queue to their system and it will sent invitation for a review email to customer 7 days after the queue record is created.

You can see the list of invitation queue records at:
https://businessapp.b2b.trustpilot.com/invitations/invitation-history

After 7 days of the order, Trustpilot will automatically send an email for the customer to give a review for your service. Example below:

trustpilot invitation queue

For more details about the queued invitation email, you can refer to:
https://support.trustpilot.com/hc/en-us/articles/4404655951762

If you want the invitation email to send earlier, you can edit the date in any of the queue record you want at the page https://businessapp.b2b.trustpilot.com/invitations/invitation-history.

Below is the example of the look of the Trustpilot invitation email that your customers will see:


trustpilot invitation email


Note: Please refer to our other Trustpilot helpnote below on how to insert the Trustpilot Review widget to your VPCart site. (if you already have the widget inserted before, please ignore the below):
https://helpnotes.vpcart.com/kb/47-Interface-to-Existing-Web/1432-How-to-Integrate-TrustPilot-Review-Widget-to-your-VPCart-Site/


Times Viewed:
161
Added By:
Wilson Keneshiro
Date Created:
12/9/2022
Last Updated:
12/9/2022