Help Center

Add a structured data snippet for Automatic Feedback Service

Add a structured data snippet for Automatic Feedback Service

Using the basic setup of AFS is effective on its own, but if you want to further enhance your invitations and add more functionality, you can add a structured data snippet to your email template. You’ll also need to use a structured data snippet if you want to use AFS but don’t have a BCC field.
 

What is a structured data snippet?

Structured data is a standardized format for providing information about a page and classifying its contents.

By adding a structured data snippet to the code of your trigger emails, Complete-Reviews will be able to read the structured data and dynamically pull the relevant information and include that information in your review invitations.

Where should I add it?

The structured data snippet needs to be included in the source code of the transactional email that you’re using to trigger AFS.

It’s very important to note that the snippet must be implemented with the dynamic placeholders used by your specific platform. These placeholders vary from platform to platform, so be sure to find the right ones for your system and replace the examples with the relevant information.

To ensure the snippet works correctly, do not modify its format - All the commas, quotations marks, and colons are necessary.

What structured data snippets can I use for AFS?

You can pick and choose what information you’d like to use structured data snippets for, depending on your needs. We’ve included the code samples for the different snippets you can use below. Again, don’t forget to update placeholders and examples (seen below in bold) with your system's relevant placeholders and your preferred settings.

Note: You may need help from a developer to implement the structured data snippet.
 

Customer name and reference number

As a default, AFS will automatically pull names and reference IDs from email subject lines to personalize invitations if they're not present in the structured data snippet. Customer names will be pulled from the To: field, while the reference number will be pulled from the subject line. However, you can still use a structured data snippet if needed.

Code sample:

<script type="application/json+completereviews">
{
"recipientName": "dynamic placeholder",
"recipientEmail": "dynamic placeholder",
"referenceId": "dynamic placeholder"
}
</script>

Customer email

Adding the customer email to the structured data snippet will always take precedence over the email in the To: field. You can send the trigger email directly to your AFS address when you aren’t able to add a BCC to an email.

Code sample:

<script type="application/json+completereviews">
{
"recipientEmail": "dynamic placeholder",
"recipientName": "dynamic placeholder",
"referenceId": "dynamic placeholder"
}
</script>



Want to know more?

Get in touch to find out more about what we do to build trust and promote transparency in online reviews.