Trustpilot Destination

Trustpilot is an open and independent review platform. On Trustpilot, people can share and discover reviews of businesses, and businesses can gain insights and showcase their service and products performance through reviews.

This destination is maintained by Trustpilot. For any issues with the destination, please reach out to their team.

NOTE: The Trustpilot Destination is currently in beta, which means that they are still actively developing the destination. This doc was last updated on February 25, 2019. If you are interested in joining their beta program or have any feedback to help improve the Trustpilot Destination and its documentation, please let their team know!

Getting Started

The first step is to make sure Trustpilot supports the source type and connection mode you’ve chosen to implement. You can learn more about what dictates the connection modes we support here.

WebMobileServer
📱 Device-mode
☁️ Cloud-mode
  1. From your Segment UI’s Destinations page click on “Add Destination”.
  2. Search for “Trustpilot” within the Destinations Catalog and confirm the Source you’d like to connect to.
  3. Drop in the “Integration Key” into your Segment Settings UI as “API Key” which you can find on Trustpilot integrations page.

Track

If you haven’t had a chance to review our spec, please take a look to understand what the Track method does. An example call would look like:

analytics.track('Order Completed', {
  checkout_id: 'fksdjfsdjfisjf9sdfjsd9f',
  order_id: '50314b8e9bcf000000000000',
  email: 'test@gmail.com',
  name: 'John',
  surname: 'Johnson',
  affiliation: 'Google Store',
  total: 27.50,
  revenue: 25.00,
  shipping: 3,
  tax: 2,
  discount: 2.5,
  coupon: 'hasbros',
  currency: 'USD',
  products: [
    {
      product_id: '507f1f77bcf86cd799439011',
      sku: '45790-32',
      name: 'Monopoly: 3rd Edition',
      price: 19,
      quantity: 1,
      category: 'Games',
      url: 'https://www.example.com/product/path',
      image_url: 'https:///www.example.com/product/path.jpg'
    },
    {
      product_id: '505bd76785ebb509fc183733',
      sku: '46493-32',
      name: 'Uno Card Game',
      price: 3,
      quantity: 2,
      category: 'Games'
    }
  ]
});

Trustpilot accepts only Order Completed events. These Track calls will be sent to Trustpilot as a track event and create a review invitation.

IMPORTANT: Both order_id and email are required fields.


Personas

You can send computed traits and audiences generated through Segment Personas to this destination as a user property. To learn more about Personas, reach out for a demo.

For user-property destinations, an identify call will be sent to the destination for each user being added and removed. The property name will be the snake_cased version of the audience name you provide with a true/false value. For example, when a user first completes an order in the last 30 days, we will send an identify call with the property order_completed_last_30days: true, and when this user no longer satisfies we will set that value to false.

When the audience is first created an identify call is sent for every user in the audience. Subsequent syncs will only send updates for those users which were added or removed since the last sync.

Settings

Segment lets you change these destination settings via your Segment dashboard without having to touch any code.

API Key

Drop in the “Integration Key” into your Segment Settings UI which you can find on https://businessapp.b2b.trustpilot.com/#/ecommerce/segment

Adding Trustpilot to the integrations object

To add Trustpilot to the integrations JSON object (for example, to filter data from a specific source), use one of the 1 valid names for this integration:
  • Trustpilot


  • Questions? Need help? Contact us!
    Can we improve this doc?
    Email us: docs-feedback@segment.com!