无法将架构代码添加到我的电子邮件版本中

时间:2019-06-18 13:52:26

标签: google-schemas

我无法在我的电子邮件版本中添加架构代码-当我在Gmail中测试电子邮件时,什么都没有显示。

我尝试测试我的电子邮件,但是没有看到架构信息。

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<script type="application/ld+json">
[{
"@context": "http://schema.org/",
"@type": "Organization",

// WARNING: Before sending email, either point the logo
// at your own image or delete the logo annotation.
//
// If showing a logo, we recommend using an https URL.
// It's not a requirement today, but may be in the future.
"logo": "http://media.bobsdiscountfurniture.com/7843/Miscellaneous/little    -bob-profile.jpg"
},{
"@context": "http://schema.org/",
"@type": "EmailMessage",

// Alternative subject line.
"subjectLine": "It's Two for Tuesday!"
},{
"@context": "http://schema.org/",
"@type": "DiscountOffer",

    "description": "Two items - one great price!",

"discountCode": "",
"availabilityStarts": "2019-06-09T06:51:45-07:00",
"availabilityEnds": "2019-06-12T06:51:45-07:00"
},{
// Promotion card with single image.
// We recommend using an https URL.// 
// Sample image is 538x138, 3.9 aspect ratio
"@context": "http://schema.org/",
"@type": "PromotionCard",
"image": "https://productimages.mybobs.com/20052909/20052909_hero_wide.pn    g"
}]
  </script>
</head>

<body>
<p>Email Body</p>
<p>Line 2</p>
</body>
</html>

我希望在我的测试电子邮件证明中显示我的Schema代码,以便我可以发送给Google,以便获得授权将Schema代码定期纳入我的电子邮件中。

1 个答案:

答案 0 :(得分:0)

您可以参考有关电子邮件标记的官方文档并进行this guide。还请记住,对于您的示例电子邮件的内容,强烈建议使用与架构代码相同的生产设置。