Trustpilot's Klaviyo integration

Our Klaviyo integration allows you to showcase your Trustpilot stars, ratings, and reviews directly in your Klaviyo newsletters, using a dynamic widget. This article shows you how to set up the integration and add the widget to your campaigns.

Note: We don't currently have a sandbox environment available for testing purposes.

Connect Trustpilot with Klaviyo

To get started, follow these steps to authorize permission for Trustpilot to connect with Klaviyo:

  1. From your Klaviyo admin page, navigate to Account > Settings > API keys. Click Create API Key if you haven’t created one yet.
  2. Copy the private API key.
  3. From your Trustpilot Business account, navigate to Integrations > Marketing > Klaviyo.
  4. Paste the private API key in the indicated field. Click Connect.

Customize your widget

After you've connected Trustpilot with Klaviyo, you can add a widget to your campaigns. While you’re customizing your settings, you’ll see a dynamic preview of the widget. Here’s how to customize it:

  1. From your Trustpilot Business account, navigate to Integrations > Marketing > Klaviyo
  2. Find the section Customize your widget on the right side menu. Under Select review type, choose the type of reviews you’d like featured in your widget.
  3. If you select Product Reviews, under Product SKU, enter one or multiple Product SKUs, separated by commas. If you select Service Reviews, you can skip this step.
  4. Under Select layout, choose from the available options to select what criteria you'd like to apply. A selection of reviews that match this criteria will be showcased in your widget. 
  5. You can continue customizing your widget by using the filtering options under Select star rating and Select number of reviews.
  6. All changes are saved automatically.

Note: Only one widget can be used at a time. Changes to your widget settings will be applied to all email campaigns displaying the widget.

Connect your Trustpilot data feed to Klaviyo

Once you’ve configured your widget, you’ll need to connect your Trustpilot data feed to Klaviyo, in order to add the widget to your campaigns.

  1. From your Trustpilot Business account, navigate to Integrations > Marketing > Klaviyo.
  2. Under How to add widget to your email, find the URL below Set up Data Feed. Click Copy URL.
  3. From your Klaviyo account, navigate to Data Feeds and click Add Web Feed.
  4. Under Feed Name enter a name for the feed, then paste the URL that you just copied into Feed URL.
  5. Set the Request Method as GET.
  6. Set the Content Type as XML.
  7. Click Add Data Feed when you’re done.

Add the widget to your Klaviyo campaigns

Once you’ve connected your Trustpilot data feed to Klaviyo, you can add the widget to your campaigns.

  1. From your Klaviyo admin page, click Campaigns.
  2. Click Create Campaign or edit an existing campaign by clicking on it.
  3. Name and configure your campaign, then click Save & Continue to Content.
  4. Fill out your sender information, then select your template. You can create an email using Text Only, Drag and Drop, or HTML, but we recommend Drag and Drop for its easy-to-use interface.
  5. Select a Text block and place it where desired. Choose Source from the formatting options.
    >
  6. Navigate back to the Klaviyo page in your Trustpilot Business account. Under How to add widget to your email, find the code below Add widget code to email template. Click Copy code.
  7. Go back to the Klaviyo campaign editor and paste the code into the text box.
  8. In the first line of the code snippet, replace ##FEED_NAME## (including hashtags) with the name of your Data Feed and click Save. The feed name won’t appear anywhere in your email.
  9. The widget should appear as code in the campaign editor. To see how the widget looks, click Preview and check the box Fill in placeholders for Klaviyo unsubscribe, web view and manage preference tags.
  10. Click Data Feeds at the bottom of the page.
  11. Select the Data Feed you just entered, then click Save.
  12. Configure the rest of your Klaviyo campaign as desired, and you’re all set!

Tip: To use this widget in other emails, you can create a saved block. To do so, hover over the widget in the preview and click the star ★.