Code editor: send Trustpilot reviews
UpdatedSend Trustpilot reviews as emails using our code editor.
If you want to send Trustpilot reviews through Customer.io, you can either integrate with Zapier or follow the steps below. In this guide, you BCC Trustpilot in an email and include certain metadata, no formal integration required.
Use the code editor
You must create the email with our code editor to ensure the metadata is not stripped from the email.
- Obtain your unique BCC address from Trustpilot.
- In Customer.io, drag an email block onto your campaign or API-triggered broadcast. Or select Email for a newsletter or transactional message.
- Click Add Content.
- Under Start from scratch, choose Code, or under Start from existing email, click Code and choose an email made with the code editor.
- Add the BCC address to your email’s envelope.
- If you send the email content in a Transactional API call, your developer needs to add the email address to the
bcc
(orfake_bcc
) field.
- If you send the email content in a Transactional API call, your developer needs to add the email address to the
- Add this tag
<script type="application/json+trustpilot">
to pass along the metadata Trustpilot needs. Add the data you want to send, formatted as JSON. For instance, you could send customer data using liquid like{{customer.latest_booking}}
, wherelatest_booking
is a property you store in Customer.io.- If you pass the email content in a Transactional API call, you need static values; liquid will not get evaluated.
- After Trustpilot receives the message (on BCC), they send the review request to your customer.