我想使用 Gmail 收件箱操作的跟踪操作按钮功能。我尝试了查看操作和跟踪操作功能。但是,我完全困惑应该使用哪种方法来实现我的要求。我试图在我的电子邮件中添加以下标记。对于跟踪操作,我编写了以下标记。
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ParcelDelivery",
"trackingUrl": "http://www.my-domain.com/trackOrder/orderId=101010"
}
</script>
对于视图操作,我编写了以下标记。
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"action": {
"@type": "ViewAction",
"url": "http://www.my-domain.com/trackOrder/orderId=101010",
"name": "Track your order"
}
}
使用这些标记中的任何一个,我都可以达到我的要求。但我不确定哪个 wat 更好。我也不清楚如何在标记中使用“deliveryAddress”、“expectedArrivalUntil”、“carrier”、“itemShipped”、“partOfOrder”等属性。
我需要这方面的建议。