我正在尝试使用以下页面作为指南将 Go-To Action 添加到外发电子邮件:
https://developers.google.com/gmail/schemas/reference/go-to-action
在测试中,该动作没有出现。这是我正在使用的确切代码。我已经尝试过 JSON-LD 和微数据格式。
JSON
<script type="application/ld+json">
{
"@context": "schema.org",
"@type": "EmailMessage",
"action": {
"url": "http://www.barbaraboxer.com/petitions/MSA?sc=RB_msa",
"name": "Sign Now"
},
"description": "Sign on as a citizen co-sponsor of the Military Justice Improvement Act"
}
</script>
微数据
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="http://www.barbaraboxer.com/petitions/MSA?sc=RB_msa"/>
<link itemprop="name" href="Sign Now"/>
</div>
<meta itemprop="description" content="Sign on as a citizen co-sponsor of the Military Justice Improvement Act"/>
</div>