我正在尝试实现代码以在促销选项卡中获取客户简报的注释,并且我确实可以使用它。但是,它仅在我重新加载“促销”选项卡或打开和关闭相关电子邮件后显示注释。我尝试使用ld + json和Microdata。两者都有同样的问题。
这是一个已知的问题?或者我做错了什么?
以下是我试过的代码:
<script type="application/ld+json">
[{
"@context": "http://schema.org/",
"@type": "Organization",
"logo": "https://www.website.com/images/logo.png"
},{
"@context": "http://schema.org/",
"@type": "DiscountOffer",
"description": "15% off",
"availabilityEnds": "2018-12-30T23:59:59-0100"
},{
"@context": "http://schema.org/",
"@type": "PromotionCard",
"image": "https://www.website.com/images/promotionbanner.jpg"
}]
</script>
这是我试过的微观数据
<div itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="nameofthecompany"/>
<meta itemprop="url" content="https://www.website.nl/">
<meta itemprop="logo" content="https://www.website.com/images/logo.png" />
</div>
<div itemscope itemtype="http://schema.org/PromotionCard">
<meta itemprop="image" content="https://www.website.com/images/promotionbanner.jpg"/>
</div>
<div itemscope itemtype="http://schema.org/DiscountOffer">
<meta itemprop="description" content="15% off"/>
<meta itemprop="availabilityEnds" content="2018-12-30T23:59:59-0100"/>
</div>
您是否在促销标签中看到了注释?如果您成功,可以将演示发送到我的电子邮件([email protected])。
要创建稳定的环境,捆绑包中显示的内容每天只会更新几次。要刷新促销选项卡屏幕上的内容,请刷新以进行刷新。或者,对于更积极的捆绑和更快的测试,创建一个以[email protected]结尾的测试帐户。但是,可能仍需要下拉以刷新(可以重复直到您的电子邮件填充在捆绑包中并可以存档电子邮件以便为捆绑中的新电子邮件腾出空间)。
此外,您拥有的到期日期格式不正确 - 应在注释中包含开始日期和结束日期。结束日期需要在将来,过期日期将导致电子邮件不会填充在捆绑中。
来源website。