我很高兴你问!这是 Schema.org 计划的一部分,Google 支持的一项很棒的新功能和标准。
在此处复制他们的示例,使客户可以直接从电子邮件中查看某些内容!此块将直接复制到您的邮件模板中。
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Restaurant",
"name": "Google Cafe",
"action": {
"@type": "ReviewAction",
"review": {
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"bestRating": "5",
"worstRating": "1"
}
},
"handler": {
"@type": "HttpActionHandler",
"url": "{{ review_url }}",
"encoding": {
"url": "http://schema.org/Encoding/UrlEncoded"
},
"method": "http://schema.org/HttpRequestMethod/POST",
"requiredProperty": {
"@type": "Property",
"name": "review.reviewRating.ratingValue"
},
"optionalProperty": {
"@type": "Property",
"name": "review.reviewBody"
}
}
}
}
</script>
可以在此处找到有关如何激活这些功能的文档:https ://developers.google.com/gmail/actions/