​Get local reviews for your locations

More reviews in more places create visibility and trust. Get local reviews for your locations and discover what your customers think about your company on a local level.

Once you’re done setting up your company’s locations, start collecting service reviews with Trustpilot Local. Use our Automatic Feedback Service, JavaScript Integration or Invitation API to do this.

Note: You may need a developer to help you do this, as you need to dynamically add the location ID in each invitation.

Use the Automatic Feedback Service (AFS)

The Automatic Feedback Service works by configuring your webshop or email system to add Trustpilot as “Bcc” in order confirmation emails. Bcc’ing Trustpilot in these emails triggers our AFS tool to send automatic review invitations to those customers.

With Trustpilot Local, you can associate the reviews you get from customers with specific locations. To set that up, you’ll need to include the location ID as a structured data snippet in your emails following these two steps:

  1. Set up the Automatic Feedback Service.
  2. Add the following Structured Data Snippet in the source code of the trigger email. This ensures that the location ID is dynamically included depending on the user's location.

Note: The location ID is case sensitive.

{
  "recipientName": "Name MacNameson",
  "recipientEmail": "customer@email.com",
  "referenceId": "1234abcd",
  "locationId": "id1"
}

Learn more about how to use the structured data snippet and what other properties you can pass.

Use the JavaScript Integration

Add the JavaScript integration to almost any custom website to send out local review invitations. 

  1. Navigate to Trustpilot Business > Integrations > JavaScript Integration, then click the Copy code button.
  2. In your website's HTML source code, paste the code snippet in the <head>element or use Google Tag Manager.
  3. Back in Trustpilot Business, click the Verify button to verify your domain to make sure you've added the code correctly.
  4. In the Complete your setup workflow, under Finish setting up the integration, select the invitations that you want to automate. Click the Copy code button, then paste the script onto your confirmation page.
  5. Replace each data element with the appropriate values of your website.

Note: The location ID is case sensitive.

document.addEventListener('DOMContentLoaded', function() {
  const trustpilot_invitation_data = {
 recipientEmail: 'john@gmail.com',
 recipientName: 'John',
 referenceId: 'Order_123',
 source: 'InvitationScript',
 locationId: 'location_1',
  };
  tp('createInvitation', trustpilot_invitation_data);
});

Use the Invitation API

You can also use our Invitations API to trigger invitation emails.

  1. Get an API key and secret.
  2. Use the Invitation API endpoints to trigger email invitations.
  3. Dynamically include the location of the user with each invitation.

Note: The location ID is case sensitive.

{
  "recipientEmail": "customer@email.com",
  "recipientName": "Name MacNameson",
  "referenceId": "1234abcd",
  "locationId": "id1",
  "senderEmail": "my@company.com",
  "replyTo": "my@company.com",
  "preferredSendTime": "2018-10-12T13:37:00",
  "senderName": "My Company",
  "locale": "en-US",
  "templateId": "507f191e810c19729de860ea"
}

When one of your customers receives an invitation to leave a review, they'll be asked to review that specific location.

Use Business Generated Links

If you use Business Generated Links to send out your own review invitations, you need to include the location field when you add customer information to the payload object. Use the location ID you’ve given that specific location.

Note: The location ID is case sensitive.

{
 "email":"xyz@domain.com",
 "name":"John Smith",
 "ref":"1234",
 "locationId": "id1",
 "skus":["sku1","sku2","sku3"],
 "tags":["tag1","tag2","tag3"]
}

Check out our developer guide on Business Generated Links for more information on what other properties you can pass.

Once you’ve received reviews for your locations, start managing and analyzing them to gain insights into what your customers think about your company on a local level.